<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>WWW::Mechanize - Handy web browsing in a Perl object - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of WWW-Mechanize - MetaCPAN" href="https://metacpan.org/dist/WWW-Mechanize/releases.rss" />
        <link rel="canonical" href="./WWW::Mechanize.html" />
        <meta name="description" content="Handy web browsing in a Perl object" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/WWW::Mechanize" />
<meta name="twitter:title"       content="WWW::Mechanize" />
<meta name="twitter:description" content="Handy web browsing in a Perl object" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./WWW::Mechanize.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of WWW-Mechanize was released.">
      <span class="relatize">30 Jan 2024 14:34:27 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/WWW-Mechanize">WWW-Mechanize</a>
  </li>
  <li>
    Module version: 2.18
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/WWW-Mechanize/source/lib/WWW/Mechanize.pm">Source</a>
    (<a href="https://metacpan.org/dist/WWW-Mechanize/source/lib/WWW/Mechanize.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/WWW-Mechanize/source/lib/WWW">Browse</a>
    (<a href="https://metacpan.org/dist/WWW-Mechanize/source/lib/WWW?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/WWW-Mechanize/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/libwww-perl/WWW-Mechanize">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/WWW-Mechanize/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/libwww-perl/WWW-Mechanize">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/libwww-perl/WWW-Mechanize/issues">Issues</a>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=WWW-Mechanize+2.18" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/W/WWW-Mechanize.html?oncpan=1&amp;distmat=1&amp;version=2.18&amp;grade=2" style="color: #090">252</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/W/WWW-Mechanize.html?oncpan=1&amp;distmat=1&amp;version=2.18&amp;grade=3" style="color: #900">5</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/W/WWW-Mechanize.html?oncpan=1&amp;distmat=1&amp;version=2.18&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/OALDERS/WWW-Mechanize-2.18">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on WWW-Mechanize who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 6
      </div>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.8.0
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/WWW-Mechanize/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-2.18.tar.gz">
      Download (<span itemprop="fileSize">192.87KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FOALDERS%2FWWW-Mechanize-2.18%2Flib%2FWWW%2FMechanize.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/WWW-Mechanize/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/WWW-Mechanize/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:WWW-Mechanize">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="WWW-Mechanize">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/WWW/Mechanize.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="OALDERS/WWW-Mechanize-2.18"
>2.18
  (OALDERS on 2024-01-30)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.17"
>2.17
  (SIMBABQUE on 2023-04-27)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.16"
>2.16
  (SIMBABQUE on 2023-02-11)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.15"
>2.15
  (SIMBABQUE on 2022-08-21)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.14"
>2.14
  (SIMBABQUE on 2022-08-15)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.13"
>2.13
  (SIMBABQUE on 2022-07-29)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.12"
>2.12
  (SIMBABQUE on 2022-07-20)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.11"
>2.11
  (SIMBABQUE on 2022-07-17)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.10"
>2.10
  (OALDERS on 2022-07-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.09"
>2.09
  (OALDERS on 2022-06-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.08"
>2.08
  (OALDERS on 2022-05-30)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.07"
>2.07
  (OALDERS on 2022-04-29)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.06"
>2.06
  (OALDERS on 2021-10-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.05"
>2.05
  (OALDERS on 2021-09-21)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.04"
>2.04
  (OALDERS on 2021-08-06)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.03"
>2.03
  (OALDERS on 2020-11-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.02"
>2.02
  (OALDERS on 2020-10-13)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.01"
>2.01
  (OALDERS on 2020-09-18)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.00"
>2.00
  (OALDERS on 2020-06-09)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.99"
>1.99
  (OALDERS on 2020-06-08)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.98-TRIAL"
>1.98-TRIAL DEV
  (OALDERS on 2020-05-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.97"
>1.97
  (OALDERS on 2020-05-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.96"
>1.96
  (OALDERS on 2020-02-21)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.95"
>1.95
  (OALDERS on 2019-10-28)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.94"
>1.94
  (OALDERS on 2019-10-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.93"
>1.93
  (OALDERS on 2019-10-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.92"
>1.92
  (OALDERS on 2019-08-24)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.91"
>1.91
  (OALDERS on 2019-01-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.90"
>1.90
  (OALDERS on 2018-11-12)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.89"
>1.89
  (OALDERS on 2018-10-18)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.88"
>1.88
  (OALDERS on 2018-03-23)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.87"
>1.87
  (OALDERS on 2018-02-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.86"
>1.86
  (OALDERS on 2017-07-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.85"
>1.85
  (OALDERS on 2017-06-28)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.84"
>1.84
  (OALDERS on 2017-03-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.83"
>1.83
  (OALDERS on 2016-10-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.82"
>1.82
  (OALDERS on 2016-10-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.81"
>1.81
  (OALDERS on 2016-10-06)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.80"
>1.80
  (OALDERS on 2016-09-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.79"
>1.79
  (OALDERS on 2016-09-17)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.78"
>1.78
  (OALDERS on 2016-08-08)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.75"
>1.75
  (ETHER on 2015-06-03)</option>
<option
  
  value="MSTROUT/WWW-Mechanize-1.72_02"
>1.72_02 DEV
  (MSTROUT on 2012-04-27)</option>
<option
  
  value="MSTROUT/WWW-Mechanize-1.72_01"
>1.72_01 DEV
  (MSTROUT on 2012-03-24)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.72"
>1.72
  (JESSE on 2012-02-02)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.71"
>1.71
  (JESSE on 2011-11-25)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.70"
>1.70
  (JESSE on 2011-08-26)</option>
<option
  
  value="JASONMAY/WWW-Mechanize-1.69_01"
>1.69_01 DEV
  (JASONMAY on 2011-08-01)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.68"
>1.68
  (JESSE on 2011-04-21)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.67_01"
>1.67_01 DEV
  (JESSE on 2011-04-07)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.66"
>1.66
  (PETDANCE on 2010-09-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.64"
>1.64
  (PETDANCE on 2010-07-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.62"
>1.62
  (PETDANCE on 2010-04-11)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.60"
>1.60
  (PETDANCE on 2009-08-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.58"
>1.58
  (PETDANCE on 2009-07-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.56"
>1.56
  (PETDANCE on 2009-07-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.55_01"
>1.55_01 DEV
  (PETDANCE on 2009-07-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.54"
>1.54
  (PETDANCE on 2009-01-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.52"
>1.52
  (PETDANCE on 2008-11-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.50"
>1.50
  (PETDANCE on 2008-10-27)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/WWW-Mechanize-1.77-TRIAL"
>1.77-TRIAL DEV
  (OALDERS on 2016-08-05)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.76-TRIAL"
>1.76-TRIAL DEV
  (OALDERS on 2016-07-29)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.74"
>1.74
  (ETHER on 2015-01-24)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.73"
>1.73
  (ETHER on 2013-08-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_03"
>1.51_03 DEV
  (PETDANCE on 2008-11-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_02"
>1.51_02 DEV
  (PETDANCE on 2008-11-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_01"
>1.51_01 DEV
  (PETDANCE on 2008-11-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.49_01"
>1.49_01 DEV
  (PETDANCE on 2008-09-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.34"
>1.34
  (PETDANCE on 2007-12-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.32"
>1.32
  (PETDANCE on 2007-10-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.31_02"
>1.31_02 DEV
  (PETDANCE on 2007-10-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.31_01"
>1.31_01 DEV
  (PETDANCE on 2007-09-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.30"
>1.30
  (PETDANCE on 2007-05-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.29_01"
>1.29_01 DEV
  (PETDANCE on 2007-05-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.26"
>1.26
  (PETDANCE on 2007-05-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.24"
>1.24
  (PETDANCE on 2007-05-11)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.22"
>1.22
  (PETDANCE on 2007-03-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_04"
>1.21_04 DEV
  (PETDANCE on 2006-10-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_03"
>1.21_03 DEV
  (PETDANCE on 2006-10-07)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_02"
>1.21_02 DEV
  (PETDANCE on 2006-10-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_01"
>1.21_01 DEV
  (PETDANCE on 2006-09-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.20"
>1.20
  (PETDANCE on 2006-08-19)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.19_02"
>1.19_02 DEV
  (PETDANCE on 2006-08-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.18"
>1.18
  (PETDANCE on 2006-02-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.17_01"
>1.17_01 DEV
  (PETDANCE on 2006-01-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.16"
>1.16
  (PETDANCE on 2005-10-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.14"
>1.14
  (PETDANCE on 2005-08-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.13_01"
>1.13_01 DEV
  (PETDANCE on 2005-04-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.12"
>1.12
  (PETDANCE on 2005-02-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.11_02"
>1.11_02 DEV
  (PETDANCE on 2005-02-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.11_01"
>1.11_01 DEV
  (PETDANCE on 2005-02-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.10"
>1.10
  (PETDANCE on 2005-02-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.08"
>1.08
  (PETDANCE on 2004-12-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.06"
>1.06
  (PETDANCE on 2004-12-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_04"
>1.05_04 DEV
  (PETDANCE on 2004-11-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_03"
>1.05_03 DEV
  (PETDANCE on 2004-11-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_02"
>1.05_02 DEV
  (PETDANCE on 2004-10-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_01"
>1.05_01 DEV
  (PETDANCE on 2004-10-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.04"
>1.04
  (PETDANCE on 2004-09-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.03_02"
>1.03_02 DEV
  (PETDANCE on 2004-08-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.03_01"
>1.03_01 DEV
  (PETDANCE on 2004-05-27)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.02"
>1.02
  (PETDANCE on 2004-04-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.00"
>1.00
  (PETDANCE on 2004-04-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.76"
>0.76
  (PETDANCE on 2004-04-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.75_02"
>0.75_02 DEV
  (PETDANCE on 2004-04-05)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.75_01"
>0.75_01 DEV
  (PETDANCE on 2004-03-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.74"
>0.74
  (PETDANCE on 2004-03-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_03"
>0.73_03 DEV
  (PETDANCE on 2004-03-21)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_02"
>0.73_02 DEV
  (PETDANCE on 2004-03-03)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_01"
>0.73_01 DEV
  (PETDANCE on 2004-02-29)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.72"
>0.72
  (PETDANCE on 2004-01-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.71_02"
>0.71_02 DEV
  (PETDANCE on 2003-12-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.71_01"
>0.71_01 DEV
  (PETDANCE on 2003-12-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.70"
>0.70
  (PETDANCE on 2003-12-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.69_01"
>0.69_01 DEV
  (PETDANCE on 2003-11-26)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.66"
>0.66
  (PETDANCE on 2003-11-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.65"
>0.65
  (PETDANCE on 2003-11-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.64"
>0.64
  (PETDANCE on 2003-10-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.63"
>0.63
  (PETDANCE on 2003-10-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.62"
>0.62
  (PETDANCE on 2003-10-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.61"
>0.61
  (PETDANCE on 2003-10-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.60"
>0.60
  (PETDANCE on 2003-09-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.59"
>0.59
  (PETDANCE on 2003-09-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.58"
>0.58
  (PETDANCE on 2003-08-15)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.57"
>0.57
  (PETDANCE on 2003-08-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.56"
>0.56
  (PETDANCE on 2003-07-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.55"
>0.55
  (PETDANCE on 2003-07-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.54"
>0.54
  (PETDANCE on 2003-07-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.53"
>0.53
  (PETDANCE on 2003-07-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.52"
>0.52
  (PETDANCE on 2003-07-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.51"
>0.51
  (PETDANCE on 2003-06-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.50"
>0.50
  (PETDANCE on 2003-06-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.49"
>0.49
  (PETDANCE on 2003-06-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.48"
>0.48
  (PETDANCE on 2003-06-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.47"
>0.47
  (PETDANCE on 2003-06-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.46"
>0.46
  (PETDANCE on 2003-06-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.45"
>0.45
  (PETDANCE on 2003-06-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.44"
>0.44
  (PETDANCE on 2003-06-05)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.43"
>0.43
  (PETDANCE on 2003-05-29)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.42"
>0.42
  (PETDANCE on 2003-05-27)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.41"
>0.41
  (PETDANCE on 2003-05-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.40"
>0.40
  (PETDANCE on 2003-04-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.39"
>0.39
  (PETDANCE on 2003-04-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.38"
>0.38
  (PETDANCE on 2003-03-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.37"
>0.37
  (PETDANCE on 2003-03-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.36"
>0.36
  (PETDANCE on 2003-02-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.35"
>0.35
  (PETDANCE on 2003-01-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.33"
>0.33
  (PETDANCE on 2003-01-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.32"
>0.32
  (PETDANCE on 2002-10-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.31"
>0.31
  (PETDANCE on 2002-09-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.30"
>0.30
  (PETDANCE on 2002-09-10)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/OALDERS/WWW-Mechanize-2.18/diff/' + encodeURIComponent(this.value) + '/lib/WWW/Mechanize.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="OALDERS/WWW-Mechanize-2.18"
>2.18
  (OALDERS on 2024-01-30)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.17"
>2.17
  (SIMBABQUE on 2023-04-27)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.16"
>2.16
  (SIMBABQUE on 2023-02-11)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.15"
>2.15
  (SIMBABQUE on 2022-08-21)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.14"
>2.14
  (SIMBABQUE on 2022-08-15)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.13"
>2.13
  (SIMBABQUE on 2022-07-29)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.12"
>2.12
  (SIMBABQUE on 2022-07-20)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.11"
>2.11
  (SIMBABQUE on 2022-07-17)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.10"
>2.10
  (OALDERS on 2022-07-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.09"
>2.09
  (OALDERS on 2022-06-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.08"
>2.08
  (OALDERS on 2022-05-30)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.07"
>2.07
  (OALDERS on 2022-04-29)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.06"
>2.06
  (OALDERS on 2021-10-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.05"
>2.05
  (OALDERS on 2021-09-21)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.04"
>2.04
  (OALDERS on 2021-08-06)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.03"
>2.03
  (OALDERS on 2020-11-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.02"
>2.02
  (OALDERS on 2020-10-13)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.01"
>2.01
  (OALDERS on 2020-09-18)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.00"
>2.00
  (OALDERS on 2020-06-09)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.99"
>1.99
  (OALDERS on 2020-06-08)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.98-TRIAL"
>1.98-TRIAL DEV
  (OALDERS on 2020-05-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.97"
>1.97
  (OALDERS on 2020-05-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.96"
>1.96
  (OALDERS on 2020-02-21)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.95"
>1.95
  (OALDERS on 2019-10-28)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.94"
>1.94
  (OALDERS on 2019-10-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.93"
>1.93
  (OALDERS on 2019-10-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.92"
>1.92
  (OALDERS on 2019-08-24)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.91"
>1.91
  (OALDERS on 2019-01-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.90"
>1.90
  (OALDERS on 2018-11-12)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.89"
>1.89
  (OALDERS on 2018-10-18)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.88"
>1.88
  (OALDERS on 2018-03-23)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.87"
>1.87
  (OALDERS on 2018-02-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.86"
>1.86
  (OALDERS on 2017-07-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.85"
>1.85
  (OALDERS on 2017-06-28)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.84"
>1.84
  (OALDERS on 2017-03-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.83"
>1.83
  (OALDERS on 2016-10-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.82"
>1.82
  (OALDERS on 2016-10-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.81"
>1.81
  (OALDERS on 2016-10-06)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.80"
>1.80
  (OALDERS on 2016-09-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.79"
>1.79
  (OALDERS on 2016-09-17)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.78"
>1.78
  (OALDERS on 2016-08-08)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.75"
>1.75
  (ETHER on 2015-06-03)</option>
<option
  
  value="MSTROUT/WWW-Mechanize-1.72_02"
>1.72_02 DEV
  (MSTROUT on 2012-04-27)</option>
<option
  
  value="MSTROUT/WWW-Mechanize-1.72_01"
>1.72_01 DEV
  (MSTROUT on 2012-03-24)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.72"
>1.72
  (JESSE on 2012-02-02)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.71"
>1.71
  (JESSE on 2011-11-25)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.70"
>1.70
  (JESSE on 2011-08-26)</option>
<option
  
  value="JASONMAY/WWW-Mechanize-1.69_01"
>1.69_01 DEV
  (JASONMAY on 2011-08-01)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.68"
>1.68
  (JESSE on 2011-04-21)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.67_01"
>1.67_01 DEV
  (JESSE on 2011-04-07)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.66"
>1.66
  (PETDANCE on 2010-09-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.64"
>1.64
  (PETDANCE on 2010-07-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.62"
>1.62
  (PETDANCE on 2010-04-11)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.60"
>1.60
  (PETDANCE on 2009-08-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.58"
>1.58
  (PETDANCE on 2009-07-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.56"
>1.56
  (PETDANCE on 2009-07-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.55_01"
>1.55_01 DEV
  (PETDANCE on 2009-07-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.54"
>1.54
  (PETDANCE on 2009-01-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.52"
>1.52
  (PETDANCE on 2008-11-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.50"
>1.50
  (PETDANCE on 2008-10-27)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/WWW-Mechanize-1.77-TRIAL"
>1.77-TRIAL DEV
  (OALDERS on 2016-08-05)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.76-TRIAL"
>1.76-TRIAL DEV
  (OALDERS on 2016-07-29)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.74"
>1.74
  (ETHER on 2015-01-24)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.73"
>1.73
  (ETHER on 2013-08-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_03"
>1.51_03 DEV
  (PETDANCE on 2008-11-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_02"
>1.51_02 DEV
  (PETDANCE on 2008-11-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_01"
>1.51_01 DEV
  (PETDANCE on 2008-11-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.49_01"
>1.49_01 DEV
  (PETDANCE on 2008-09-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.34"
>1.34
  (PETDANCE on 2007-12-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.32"
>1.32
  (PETDANCE on 2007-10-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.31_02"
>1.31_02 DEV
  (PETDANCE on 2007-10-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.31_01"
>1.31_01 DEV
  (PETDANCE on 2007-09-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.30"
>1.30
  (PETDANCE on 2007-05-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.29_01"
>1.29_01 DEV
  (PETDANCE on 2007-05-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.26"
>1.26
  (PETDANCE on 2007-05-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.24"
>1.24
  (PETDANCE on 2007-05-11)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.22"
>1.22
  (PETDANCE on 2007-03-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_04"
>1.21_04 DEV
  (PETDANCE on 2006-10-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_03"
>1.21_03 DEV
  (PETDANCE on 2006-10-07)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_02"
>1.21_02 DEV
  (PETDANCE on 2006-10-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_01"
>1.21_01 DEV
  (PETDANCE on 2006-09-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.20"
>1.20
  (PETDANCE on 2006-08-19)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.19_02"
>1.19_02 DEV
  (PETDANCE on 2006-08-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.18"
>1.18
  (PETDANCE on 2006-02-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.17_01"
>1.17_01 DEV
  (PETDANCE on 2006-01-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.16"
>1.16
  (PETDANCE on 2005-10-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.14"
>1.14
  (PETDANCE on 2005-08-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.13_01"
>1.13_01 DEV
  (PETDANCE on 2005-04-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.12"
>1.12
  (PETDANCE on 2005-02-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.11_02"
>1.11_02 DEV
  (PETDANCE on 2005-02-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.11_01"
>1.11_01 DEV
  (PETDANCE on 2005-02-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.10"
>1.10
  (PETDANCE on 2005-02-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.08"
>1.08
  (PETDANCE on 2004-12-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.06"
>1.06
  (PETDANCE on 2004-12-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_04"
>1.05_04 DEV
  (PETDANCE on 2004-11-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_03"
>1.05_03 DEV
  (PETDANCE on 2004-11-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_02"
>1.05_02 DEV
  (PETDANCE on 2004-10-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_01"
>1.05_01 DEV
  (PETDANCE on 2004-10-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.04"
>1.04
  (PETDANCE on 2004-09-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.03_02"
>1.03_02 DEV
  (PETDANCE on 2004-08-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.03_01"
>1.03_01 DEV
  (PETDANCE on 2004-05-27)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.02"
>1.02
  (PETDANCE on 2004-04-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.00"
>1.00
  (PETDANCE on 2004-04-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.76"
>0.76
  (PETDANCE on 2004-04-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.75_02"
>0.75_02 DEV
  (PETDANCE on 2004-04-05)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.75_01"
>0.75_01 DEV
  (PETDANCE on 2004-03-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.74"
>0.74
  (PETDANCE on 2004-03-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_03"
>0.73_03 DEV
  (PETDANCE on 2004-03-21)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_02"
>0.73_02 DEV
  (PETDANCE on 2004-03-03)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_01"
>0.73_01 DEV
  (PETDANCE on 2004-02-29)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.72"
>0.72
  (PETDANCE on 2004-01-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.71_02"
>0.71_02 DEV
  (PETDANCE on 2003-12-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.71_01"
>0.71_01 DEV
  (PETDANCE on 2003-12-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.70"
>0.70
  (PETDANCE on 2003-12-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.69_01"
>0.69_01 DEV
  (PETDANCE on 2003-11-26)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.66"
>0.66
  (PETDANCE on 2003-11-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.65"
>0.65
  (PETDANCE on 2003-11-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.64"
>0.64
  (PETDANCE on 2003-10-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.63"
>0.63
  (PETDANCE on 2003-10-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.62"
>0.62
  (PETDANCE on 2003-10-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.61"
>0.61
  (PETDANCE on 2003-10-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.60"
>0.60
  (PETDANCE on 2003-09-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.59"
>0.59
  (PETDANCE on 2003-09-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.58"
>0.58
  (PETDANCE on 2003-08-15)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.57"
>0.57
  (PETDANCE on 2003-08-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.56"
>0.56
  (PETDANCE on 2003-07-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.55"
>0.55
  (PETDANCE on 2003-07-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.54"
>0.54
  (PETDANCE on 2003-07-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.53"
>0.53
  (PETDANCE on 2003-07-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.52"
>0.52
  (PETDANCE on 2003-07-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.51"
>0.51
  (PETDANCE on 2003-06-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.50"
>0.50
  (PETDANCE on 2003-06-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.49"
>0.49
  (PETDANCE on 2003-06-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.48"
>0.48
  (PETDANCE on 2003-06-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.47"
>0.47
  (PETDANCE on 2003-06-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.46"
>0.46
  (PETDANCE on 2003-06-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.45"
>0.45
  (PETDANCE on 2003-06-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.44"
>0.44
  (PETDANCE on 2003-06-05)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.43"
>0.43
  (PETDANCE on 2003-05-29)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.42"
>0.42
  (PETDANCE on 2003-05-27)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.41"
>0.41
  (PETDANCE on 2003-05-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.40"
>0.40
  (PETDANCE on 2003-04-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.39"
>0.39
  (PETDANCE on 2003-04-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.38"
>0.38
  (PETDANCE on 2003-03-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.37"
>0.37
  (PETDANCE on 2003-03-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.36"
>0.36
  (PETDANCE on 2003-02-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.35"
>0.35
  (PETDANCE on 2003-01-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.33"
>0.33
  (PETDANCE on 2003-01-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.32"
>0.32
  (PETDANCE on 2002-10-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.31"
>0.31
  (PETDANCE on 2002-09-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.30"
>0.30
  (PETDANCE on 2002-09-10)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/Getopt::Long" title="Getopt::Long" class="ellipsis">Getopt::Long</a></li>
  <li><a href="https://metacpan.org/pod/HTML::Form" title="HTML::Form" class="ellipsis">HTML::Form</a></li>
  <li><a href="https://metacpan.org/pod/HTML::HeadParser" title="HTML::HeadParser" class="ellipsis">HTML::HeadParser</a></li>
  <li><a href="./HTML::TokeParser.html" title="HTML::TokeParser" class="ellipsis">HTML::TokeParser</a></li>
  <li><a href="./HTML::TreeBuilder.html" title="HTML::TreeBuilder" class="ellipsis">HTML::TreeBuilder</a></li>
  <li><a href="https://metacpan.org/pod/HTTP::Cookies" title="HTTP::Cookies" class="ellipsis">HTTP::Cookies</a></li>
  <li><a href="./HTTP::Request.html" title="HTTP::Request" class="ellipsis">HTTP::Request</a></li>
  <li><a href="https://metacpan.org/pod/HTTP::Request::Common" title="HTTP::Request::Common" class="ellipsis">HTTP::Request::Common</a></li>
  <li><a href="./LWP::UserAgent.html" title="LWP::UserAgent" class="ellipsis">LWP::UserAgent</a></li>
  <li><a href="https://metacpan.org/pod/Pod::Usage" title="Pod::Usage" class="ellipsis">Pod::Usage</a></li>
  <li><a href="https://metacpan.org/pod/Scalar::Util" title="Scalar::Util" class="ellipsis">Scalar::Util</a></li>
  <li><a href="https://metacpan.org/pod/Tie::RefHash" title="Tie::RefHash" class="ellipsis">Tie::RefHash</a></li>
  <li><a href="https://metacpan.org/pod/URI::URL" title="URI::URL" class="ellipsis">URI::URL</a></li>
  <li><a href="https://metacpan.org/pod/URI::file" title="URI::file" class="ellipsis">URI::file</a></li>
  <li><a href="https://metacpan.org/pod/base" title="base" class="ellipsis">base</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/warnings" title="warnings" class="ellipsis">warnings</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/WWW::Mechanize/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=WWW%3A%3AMechanize">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=WWW-Mechanize">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/OALDERS/WWW-Mechanize-2.18/view/lib/WWW/Mechanize.pm">This version</a>
    </li>
    <li>
      <a href="./WWW::Mechanize.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MJEMMESON"><img src="https://www.gravatar.com/avatar/e17c4cf81cbd75b5043884252c378c47?d=identicon&amp;s=20" title="MJEMMESON" alt="MJEMMESON"></a>
<a class="display-all" href="https://metacpan.org/author/DCPETROV"><img src="https://www.gravatar.com/avatar/10e265a667839a004d83dd3ed6b6cfc9?d=identicon&amp;s=20" title="DCPETROV" alt="DCPETROV"></a>
<a class="display-all" href="https://metacpan.org/author/DOHERTY"><img src="https://www.gravatar.com/avatar/9533c36b6385c8321bad636c98e9c0a8?d=identicon&amp;s=20" title="DOHERTY" alt="DOHERTY"></a>
<a class="display-all" href="https://metacpan.org/author/OALDERS"><img src="https://www.gravatar.com/avatar/7a66ba9f5f4af93dd55fcdc0e69c0b55?d=identicon&amp;s=20" title="OALDERS" alt="OALDERS"></a>
<a class="display-all" href="https://metacpan.org/author/GHANDI"><img src="https://www.gravatar.com/avatar/daeeb80bb04654fa3924f304fb3a87a3?d=identicon&amp;s=20" title="GHANDI" alt="GHANDI"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/WWW-Mechanize/plussers">57 PAUSE users</a>
</div>
<div>
    44 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 62 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
    >
      Andy Lester &lt;andy at petdance.com&gt;
    </li>
    <li class="contributor"
      data-cpan-author="ALTREUS"
      data-contrib-email="altreus@altre.us"
    >
      <a href="https://metacpan.org/author/ALTREUS" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/f6ff3f40f3b6fdf036bff73832357634?d=identicon&amp;s=20" />
      Alastair Douglas
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="CHORNY"
      data-contrib-email="alexchorny@gmail.com"
    >
      <a href="https://metacpan.org/author/CHORNY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/9982a6d902348d1982dd60235724e63c?d=identicon&amp;s=20" />
      Alexandr Ciornii
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="git@andreas-huber.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Andreas Huber
    </li>
    <li class="contributor"
      data-contrib-email="granny-github@ofb.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Andrew Grangaard
    </li>
    <li class="contributor"
      data-cpan-author="PETDANCE"
      data-contrib-email="andy@petdance.com"
    >
      <a href="https://metacpan.org/author/PETDANCE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/8077a0584e451732420d43f5d0b3bd31?d=identicon&amp;s=20" />
      Andy Lester
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="gitcommit@bernhardwagner.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Bernhard Wagner
    </li>
    <li class="contributor"
      data-contrib-email="10503608+bscan@users.noreply.github.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      bscan
    </li>
    <li class="contributor"
      data-cpan-author="CAPOEIRAB"
      data-contrib-email="capoeirab@cpan.org"
    >
      <a href="https://metacpan.org/author/CAPOEIRAB" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/912bfa255ef8161a494932af0cad48c5?d=identicon&amp;s=20" />
      Chase Whitener
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DAKKAR"
      data-contrib-email="dakkar@thenautilus.net"
    >
      <a href="https://metacpan.org/author/DAKKAR" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5d949b503c35e74c26ef8ecf649b886b?d=identicon&amp;s=20" />
      dakkar
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DDOYLE"
      data-contrib-email="dave.s.doyle@gmail.com"
    >
      <a href="https://metacpan.org/author/DDOYLE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/03bcb5671cf0205376dea2851e20e235?d=identicon&amp;s=20" />
      Dave Doyle
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="BIGPRESH"
      data-contrib-email="davidp@preshweb.co.uk"
    >
      <a href="https://metacpan.org/author/BIGPRESH" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/66f9cc184db11ee7810f4bc2d029ec17?d=identicon&amp;s=20" />
      David Precious
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="dsteinbrunner@pobox.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      David Steinbrunner
    </li>
    <li class="contributor"
      data-contrib-email="49699333+dependabot[bot]@users.noreply.github.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      dependabot[bot]
    </li>
    <li class="contributor"
      data-contrib-email="nawglan@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Desmond Daignault
    </li>
    <li class="contributor"
      data-contrib-email="eda@waniasset.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Ed Avis
    </li>
    <li class="contributor"
      data-contrib-email="zackse@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Evan Zacks
    </li>
    <li class="contributor"
      data-contrib-email="erkiferenc@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Ferenc Erki
    </li>
    <li class="contributor"
      data-contrib-email="flavio@polettix.it"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Flavio Poletti
    </li>
    <li class="contributor"
      data-contrib-email="fsfs@debian.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Florian Schlichting
    </li>
    <li class="contributor"
      data-contrib-email="szabgab@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gabor Szabo
    </li>
    <li class="contributor"
      data-contrib-email="gjtunley@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gareth Tunley
    </li>
    <li class="contributor"
      data-contrib-email="gilmagno@gilmagno.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gil Magno
    </li>
    <li class="contributor"
      data-cpan-author="HAARG"
      data-contrib-email="haarg@haarg.org"
    >
      <a href="https://metacpan.org/author/HAARG" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5037faf9ba40cf736778820fe83fc2ae?d=identicon&amp;s=20" />
      Graham Knop
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="GREGOA"
      data-contrib-email="gregoa@debian.org"
    >
      <a href="https://metacpan.org/author/GREGOA" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/756491c77ea95fb4592984cfd984816e?d=identicon&amp;s=20" />
      gregor herrmann
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="k.grigor@yahoo.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Grigor Karavardanyan
    </li>
    <li class="contributor"
      data-cpan-author="RAZ"
      data-contrib-email="jraspass@gmail.com"
    >
      <a href="https://metacpan.org/author/RAZ" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/b9af2a54454e8f38c169be0c236670d6?d=identicon&amp;s=20" />
      James Raspass
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="jasonmay@bestpractical.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jason May
    </li>
    <li class="contributor"
      data-contrib-email="jeff@graystorm.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jeff Culverhouse
    </li>
    <li class="contributor"
      data-contrib-email="jesse@bestpractical.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jesse Vincent
    </li>
    <li class="contributor"
      data-contrib-email="jordan.m.adler@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      jmadler
    </li>
    <li class="contributor"
      data-contrib-email="john.beppu@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      John Beppu
    </li>
    <li class="contributor"
      data-contrib-email="jozef@kutej.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jozef Kutej
    </li>
    <li class="contributor"
      data-cpan-author="SIMBABQUE"
      data-contrib-email="simbabque@cpan.org"
    >
      <a href="https://metacpan.org/author/SIMBABQUE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bcf66f65dcd36296129acbd96bfb0cb9?d=identicon&amp;s=20" />
      Julien Fiegehenn
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="ETHER"
      data-contrib-email="ether@cpan.org"
    >
      <a href="https://metacpan.org/author/ETHER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bdc5cd06679e732e262f6c1b450a0237?d=identicon&amp;s=20" />
      Karen Etheridge
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SKUD"
      data-contrib-email="skud@infotrope.net"
    >
      <a href="https://metacpan.org/author/SKUD" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/9f4935a4d6113a1964f221ce27b77366?d=identicon&amp;s=20" />
      Kirrily &#39;Skud&#39; Robert
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="kivancyazan@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Kivanc Yazan
    </li>
    <li class="contributor"
      data-cpan-author="DAXIM"
      data-contrib-email="daxim@cpan.org"
    >
      <a href="https://metacpan.org/author/DAXIM" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5ce828f20abb195ef5d971205ee36c27?d=identicon&amp;s=20" />
      Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="fishe116@purdue.edu"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Mark Leighton Fisher
    </li>
    <li class="contributor"
      data-contrib-email="mark@summersault.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Mark Stosberg
    </li>
    <li class="contributor"
      data-contrib-email="martin@sluka.de"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Martin H. Sluka
    </li>
    <li class="contributor"
      data-cpan-author="MSCHAE"
      data-contrib-email="mschae@cpan.org"
    >
      <a href="https://metacpan.org/author/MSCHAE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/83dd3b56f70d0c545dd5c8e8f5a2c45c?d=identicon&amp;s=20" />
      Matthew Chae
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="mst@shadowcat.co.uk"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Matt S Trout
    </li>
    <li class="contributor"
      data-cpan-author="CORION"
      data-contrib-email="corion@cpan.org"
    >
      <a href="https://metacpan.org/author/CORION" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/2e0676f3fb16744ca17e4b882d45eb1d?d=identicon&amp;s=20" />
      Max Maischein
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="MANWAR"
      data-contrib-email="mohammad.anwar@yahoo.com"
    >
      <a href="https://metacpan.org/author/MANWAR" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/71c853edf567f3482e0e7f21d51e9df2?d=identicon&amp;s=20" />
      Mohammad S Anwar
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="neil@bowers.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Neil Bowers
    </li>
    <li class="contributor"
      data-contrib-email="nalabelle@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Nik LaBelle
    </li>
    <li class="contributor"
      data-contrib-email="olaf@wundersolutions.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Olaf Alders
    </li>
    <li class="contributor"
      data-cpan-author="BOOK"
      data-contrib-email="book@cpan.org"
    >
      <a href="https://metacpan.org/author/BOOK" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/caceed5798ea9b855532b257de4686e8?d=identicon&amp;s=20" />
      Philippe Bruhat (BooK)
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="RJBS"
      data-contrib-email="rjbs@cpan.org"
    >
      <a href="https://metacpan.org/author/RJBS" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/cec6b9b88295ead26c65f8747a76561b?d=identicon&amp;s=20" />
      Ricardo Signes
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="schuyler@velargo.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Schuyler Langdon
    </li>
    <li class="contributor"
      data-contrib-email="sromanov-dev@yandex.ru"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Sergey Romanov
    </li>
    <li class="contributor"
      data-cpan-author="SKAJI"
      data-contrib-email="skaji@cpan.org"
    >
      <a href="https://metacpan.org/author/SKAJI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/e4967f90a08dadff9cc185b863cd99a7?d=identicon&amp;s=20" />
      Shoichi Kaji
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="creaktive@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Stanislaw Pusep
    </li>
    <li class="contributor"
      data-contrib-email="stephen@scaffidi.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Steve Scaffidi
    </li>
    <li class="contributor"
      data-contrib-email="117183+sjohnston@users.noreply.github.com saj_git@thecommune.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Stuart Johnston
    </li>
    <li class="contributor"
      data-contrib-email="sunnavy@bestpractical.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      sunnavy
    </li>
    <li class="contributor"
      data-contrib-email="tcheukueppo@tutanota.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      tcheukueppo
    </li>
    <li class="contributor"
      data-contrib-email="varadinsky@yahoo.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Varadinsky
    </li>
    <li class="contributor"
      data-cpan-author="SCOP"
      data-contrib-email="ville.skytta@iki.fi"
    >
      <a href="https://metacpan.org/author/SCOP" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/4623589f12ed201b060c2075fd9c0920?d=identicon&amp;s=20" />
      Ville Skyttä
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="ZEFRAM"
      data-contrib-email="zefram@fysh.org"
    >
      <a href="https://metacpan.org/author/ZEFRAM" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/aab343bc3a4424dcb7f913920242f051?d=identicon&amp;s=20" />
      Zefram
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="jidanni@jidanni.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      積丹尼 Dan Jacobson
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/OALDERS" class="author-name">Olaf Alders 🐫</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/WWW/Mechanize.pm&#39;" class="">
<option
  selected
  value="OALDERS/WWW-Mechanize-2.18"
>2.18
  (OALDERS on 2024-01-30)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.17"
>2.17
  (SIMBABQUE on 2023-04-27)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.16"
>2.16
  (SIMBABQUE on 2023-02-11)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.15"
>2.15
  (SIMBABQUE on 2022-08-21)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.14"
>2.14
  (SIMBABQUE on 2022-08-15)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.13"
>2.13
  (SIMBABQUE on 2022-07-29)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.12"
>2.12
  (SIMBABQUE on 2022-07-20)</option>
<option
  
  value="SIMBABQUE/WWW-Mechanize-2.11"
>2.11
  (SIMBABQUE on 2022-07-17)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.10"
>2.10
  (OALDERS on 2022-07-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.09"
>2.09
  (OALDERS on 2022-06-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.08"
>2.08
  (OALDERS on 2022-05-30)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.07"
>2.07
  (OALDERS on 2022-04-29)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.06"
>2.06
  (OALDERS on 2021-10-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.05"
>2.05
  (OALDERS on 2021-09-21)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.04"
>2.04
  (OALDERS on 2021-08-06)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.03"
>2.03
  (OALDERS on 2020-11-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.02"
>2.02
  (OALDERS on 2020-10-13)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.01"
>2.01
  (OALDERS on 2020-09-18)</option>
<option
  
  value="OALDERS/WWW-Mechanize-2.00"
>2.00
  (OALDERS on 2020-06-09)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.99"
>1.99
  (OALDERS on 2020-06-08)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.98-TRIAL"
>1.98-TRIAL DEV
  (OALDERS on 2020-05-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.97"
>1.97
  (OALDERS on 2020-05-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.96"
>1.96
  (OALDERS on 2020-02-21)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.95"
>1.95
  (OALDERS on 2019-10-28)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.94"
>1.94
  (OALDERS on 2019-10-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.93"
>1.93
  (OALDERS on 2019-10-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.92"
>1.92
  (OALDERS on 2019-08-24)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.91"
>1.91
  (OALDERS on 2019-01-10)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.90"
>1.90
  (OALDERS on 2018-11-12)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.89"
>1.89
  (OALDERS on 2018-10-18)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.88"
>1.88
  (OALDERS on 2018-03-23)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.87"
>1.87
  (OALDERS on 2018-02-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.86"
>1.86
  (OALDERS on 2017-07-04)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.85"
>1.85
  (OALDERS on 2017-06-28)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.84"
>1.84
  (OALDERS on 2017-03-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.83"
>1.83
  (OALDERS on 2016-10-14)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.82"
>1.82
  (OALDERS on 2016-10-07)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.81"
>1.81
  (OALDERS on 2016-10-06)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.80"
>1.80
  (OALDERS on 2016-09-25)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.79"
>1.79
  (OALDERS on 2016-09-17)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.78"
>1.78
  (OALDERS on 2016-08-08)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.75"
>1.75
  (ETHER on 2015-06-03)</option>
<option
  
  value="MSTROUT/WWW-Mechanize-1.72_02"
>1.72_02 DEV
  (MSTROUT on 2012-04-27)</option>
<option
  
  value="MSTROUT/WWW-Mechanize-1.72_01"
>1.72_01 DEV
  (MSTROUT on 2012-03-24)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.72"
>1.72
  (JESSE on 2012-02-02)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.71"
>1.71
  (JESSE on 2011-11-25)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.70"
>1.70
  (JESSE on 2011-08-26)</option>
<option
  
  value="JASONMAY/WWW-Mechanize-1.69_01"
>1.69_01 DEV
  (JASONMAY on 2011-08-01)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.68"
>1.68
  (JESSE on 2011-04-21)</option>
<option
  
  value="JESSE/WWW-Mechanize-1.67_01"
>1.67_01 DEV
  (JESSE on 2011-04-07)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.66"
>1.66
  (PETDANCE on 2010-09-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.64"
>1.64
  (PETDANCE on 2010-07-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.62"
>1.62
  (PETDANCE on 2010-04-11)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.60"
>1.60
  (PETDANCE on 2009-08-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.58"
>1.58
  (PETDANCE on 2009-07-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.56"
>1.56
  (PETDANCE on 2009-07-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.55_01"
>1.55_01 DEV
  (PETDANCE on 2009-07-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.54"
>1.54
  (PETDANCE on 2009-01-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.52"
>1.52
  (PETDANCE on 2008-11-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.50"
>1.50
  (PETDANCE on 2008-10-27)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/WWW-Mechanize-1.77-TRIAL"
>1.77-TRIAL DEV
  (OALDERS on 2016-08-05)</option>
<option
  
  value="OALDERS/WWW-Mechanize-1.76-TRIAL"
>1.76-TRIAL DEV
  (OALDERS on 2016-07-29)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.74"
>1.74
  (ETHER on 2015-01-24)</option>
<option
  
  value="ETHER/WWW-Mechanize-1.73"
>1.73
  (ETHER on 2013-08-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_03"
>1.51_03 DEV
  (PETDANCE on 2008-11-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_02"
>1.51_02 DEV
  (PETDANCE on 2008-11-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.51_01"
>1.51_01 DEV
  (PETDANCE on 2008-11-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.49_01"
>1.49_01 DEV
  (PETDANCE on 2008-09-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.34"
>1.34
  (PETDANCE on 2007-12-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.32"
>1.32
  (PETDANCE on 2007-10-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.31_02"
>1.31_02 DEV
  (PETDANCE on 2007-10-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.31_01"
>1.31_01 DEV
  (PETDANCE on 2007-09-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.30"
>1.30
  (PETDANCE on 2007-05-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.29_01"
>1.29_01 DEV
  (PETDANCE on 2007-05-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.26"
>1.26
  (PETDANCE on 2007-05-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.24"
>1.24
  (PETDANCE on 2007-05-11)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.22"
>1.22
  (PETDANCE on 2007-03-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_04"
>1.21_04 DEV
  (PETDANCE on 2006-10-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_03"
>1.21_03 DEV
  (PETDANCE on 2006-10-07)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_02"
>1.21_02 DEV
  (PETDANCE on 2006-10-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.21_01"
>1.21_01 DEV
  (PETDANCE on 2006-09-18)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.20"
>1.20
  (PETDANCE on 2006-08-19)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.19_02"
>1.19_02 DEV
  (PETDANCE on 2006-08-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.18"
>1.18
  (PETDANCE on 2006-02-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.17_01"
>1.17_01 DEV
  (PETDANCE on 2006-01-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.16"
>1.16
  (PETDANCE on 2005-10-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.14"
>1.14
  (PETDANCE on 2005-08-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.13_01"
>1.13_01 DEV
  (PETDANCE on 2005-04-12)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.12"
>1.12
  (PETDANCE on 2005-02-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.11_02"
>1.11_02 DEV
  (PETDANCE on 2005-02-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.11_01"
>1.11_01 DEV
  (PETDANCE on 2005-02-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.10"
>1.10
  (PETDANCE on 2005-02-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.08"
>1.08
  (PETDANCE on 2004-12-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.06"
>1.06
  (PETDANCE on 2004-12-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_04"
>1.05_04 DEV
  (PETDANCE on 2004-11-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_03"
>1.05_03 DEV
  (PETDANCE on 2004-11-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_02"
>1.05_02 DEV
  (PETDANCE on 2004-10-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.05_01"
>1.05_01 DEV
  (PETDANCE on 2004-10-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.04"
>1.04
  (PETDANCE on 2004-09-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.03_02"
>1.03_02 DEV
  (PETDANCE on 2004-08-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.03_01"
>1.03_01 DEV
  (PETDANCE on 2004-05-27)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.02"
>1.02
  (PETDANCE on 2004-04-14)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-1.00"
>1.00
  (PETDANCE on 2004-04-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.76"
>0.76
  (PETDANCE on 2004-04-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.75_02"
>0.75_02 DEV
  (PETDANCE on 2004-04-05)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.75_01"
>0.75_01 DEV
  (PETDANCE on 2004-03-28)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.74"
>0.74
  (PETDANCE on 2004-03-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_03"
>0.73_03 DEV
  (PETDANCE on 2004-03-21)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_02"
>0.73_02 DEV
  (PETDANCE on 2004-03-03)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.73_01"
>0.73_01 DEV
  (PETDANCE on 2004-02-29)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.72"
>0.72
  (PETDANCE on 2004-01-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.71_02"
>0.71_02 DEV
  (PETDANCE on 2003-12-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.71_01"
>0.71_01 DEV
  (PETDANCE on 2003-12-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.70"
>0.70
  (PETDANCE on 2003-12-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.69_01"
>0.69_01 DEV
  (PETDANCE on 2003-11-26)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.66"
>0.66
  (PETDANCE on 2003-11-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.65"
>0.65
  (PETDANCE on 2003-11-10)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.64"
>0.64
  (PETDANCE on 2003-10-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.63"
>0.63
  (PETDANCE on 2003-10-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.62"
>0.62
  (PETDANCE on 2003-10-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.61"
>0.61
  (PETDANCE on 2003-10-06)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.60"
>0.60
  (PETDANCE on 2003-09-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.59"
>0.59
  (PETDANCE on 2003-09-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.58"
>0.58
  (PETDANCE on 2003-08-15)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.57"
>0.57
  (PETDANCE on 2003-08-01)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.56"
>0.56
  (PETDANCE on 2003-07-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.55"
>0.55
  (PETDANCE on 2003-07-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.54"
>0.54
  (PETDANCE on 2003-07-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.53"
>0.53
  (PETDANCE on 2003-07-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.52"
>0.52
  (PETDANCE on 2003-07-08)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.51"
>0.51
  (PETDANCE on 2003-06-30)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.50"
>0.50
  (PETDANCE on 2003-06-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.49"
>0.49
  (PETDANCE on 2003-06-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.48"
>0.48
  (PETDANCE on 2003-06-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.47"
>0.47
  (PETDANCE on 2003-06-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.46"
>0.46
  (PETDANCE on 2003-06-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.45"
>0.45
  (PETDANCE on 2003-06-17)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.44"
>0.44
  (PETDANCE on 2003-06-05)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.43"
>0.43
  (PETDANCE on 2003-05-29)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.42"
>0.42
  (PETDANCE on 2003-05-27)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.41"
>0.41
  (PETDANCE on 2003-05-23)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.40"
>0.40
  (PETDANCE on 2003-04-20)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.39"
>0.39
  (PETDANCE on 2003-04-02)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.38"
>0.38
  (PETDANCE on 2003-03-25)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.37"
>0.37
  (PETDANCE on 2003-03-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.36"
>0.36
  (PETDANCE on 2003-02-04)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.35"
>0.35
  (PETDANCE on 2003-01-22)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.33"
>0.33
  (PETDANCE on 2003-01-16)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.32"
>0.32
  (PETDANCE on 2002-10-24)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.31"
>0.31
  (PETDANCE on 2002-09-13)</option>
<option
  
  value="PETDANCE/WWW-Mechanize-0.30"
>0.30
  (PETDANCE on 2002-09-10)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/WWW-Mechanize">WWW-Mechanize-2.18</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage three &#10;
          • 282 direct dependents &#10;          • 550 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="WWW-Mechanize-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="WWW-Mechanize-2.18">
    <input type="hidden" name="author" value="OALDERS">
    <input type="hidden" name="distribution" value="WWW-Mechanize">
    <button type="submit" class="favorite highlight"><span>101</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./WWW::Mechanize.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>101</span> ++</a>
</div>
   / <span>WWW::Mechanize</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./WWW::Mechanize.html#NAME">NAME</a></li>
  <li><a href="./WWW::Mechanize.html#VERSION">VERSION</a></li>
  <li><a href="./WWW::Mechanize.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./WWW::Mechanize.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./WWW::Mechanize.html#IMPORTANT-LINKS">IMPORTANT LINKS</a></li>
  <li><a href="./WWW::Mechanize.html#CONSTRUCTOR-AND-STARTUP">CONSTRUCTOR AND STARTUP</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#new()">new()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eagent_alias(-$alias-)">$mech-&gt;agent_alias( $alias )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eknown_agent_aliases()">$mech-&gt;known_agent_aliases()</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#PAGE-FETCHING-METHODS">PAGE-FETCHING METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eget(-$uri-)">$mech-&gt;get( $uri )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Epost(-$uri,-content-=%3E-$content-)">$mech-&gt;post( $uri, content =&gt; $content )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eput(-$uri,-content-=%3E-$content-)">$mech-&gt;put( $uri, content =&gt; $content )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ehead-($uri-)">$mech-&gt;head ($uri )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Edelete-($uri-)">$mech-&gt;delete ($uri )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ereload()">$mech-&gt;reload()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eback()">$mech-&gt;back()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eclear_history()">$mech-&gt;clear_history()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ehistory_count()">$mech-&gt;history_count()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ehistory($n)">$mech-&gt;history($n)</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#STATUS-METHODS">STATUS METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Esuccess()">$mech-&gt;success()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Euri()">$mech-&gt;uri()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eresponse()-/-$mech-%3Eres()">$mech-&gt;response() / $mech-&gt;res()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Estatus()">$mech-&gt;status()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ect()-/-$mech-%3Econtent_type()">$mech-&gt;ct() / $mech-&gt;content_type()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ebase()">$mech-&gt;base()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eforms()">$mech-&gt;forms()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ecurrent_form()">$mech-&gt;current_form()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Elinks()">$mech-&gt;links()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eis_html()">$mech-&gt;is_html()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Etitle()">$mech-&gt;title()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eredirects()">$mech-&gt;redirects()</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#CONTENT-HANDLING-METHODS">CONTENT-HANDLING METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Econtent(...)">$mech-&gt;content(...)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Etext()">$mech-&gt;text()</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#LINK-METHODS">LINK METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Elinks()1">$mech-&gt;links()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efollow_link(...)">$mech-&gt;follow_link(...)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efind_link(-...-)">$mech-&gt;find_link( ... )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efind_all_links(-...-)">$mech-&gt;find_all_links( ... )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efind_all_inputs(-...-criteria-...-)">$mech-&gt;find_all_inputs( ... criteria ... )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efind_all_submits(-...-criteria-...-)">$mech-&gt;find_all_submits( ... criteria ... )</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#IMAGE-METHODS">IMAGE METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eimages">$mech-&gt;images</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efind_image()">$mech-&gt;find_image()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efind_all_images(-...-)">$mech-&gt;find_all_images( ... )</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#FORM-METHODS">FORM METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eforms">$mech-&gt;forms</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eform_number($number)">$mech-&gt;form_number($number)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eform_action(-$action-)">$mech-&gt;form_action( $action )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eform_name(-$name-%5B,-%5C%25args-%5D-)">$mech-&gt;form_name( $name [, \%args ] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eform_id(-$id-%5B,-%5C%25args-%5D-)">$mech-&gt;form_id( $id [, \%args ] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eall_forms_with_fields(-@fields-)">$mech-&gt;all_forms_with_fields( @fields )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eform_with_fields(-@fields,-%5B-%5C%25args-%5D-)">$mech-&gt;form_with_fields( @fields, [ \%args ] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eall_forms_with(-$attr1-=%3E-$value1,-$attr2-=%3E-$value2,-...-)">$mech-&gt;all_forms_with( $attr1 =&gt; $value1, $attr2 =&gt; $value2, ... )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eform_with(-$attr1-=%3E-$value1,-$attr2-=%3E-$value2,-...,-%5B-%5C%25args-%5D-)">$mech-&gt;form_with( $attr1 =&gt; $value1, $attr2 =&gt; $value2, ..., [ \%args ] )</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#FIELD-METHODS">FIELD METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">$mech-&gt;field( $name, $value, $number )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-%5C@values,-$number-)">$mech-&gt;field( $name, \@values, $number )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-%5C@file_upload_values,-$number-)">$mech-&gt;field( $name, \@file_upload_values, $number )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eselect($name,-$new_or_additional_single_value)">$mech-&gt;select($name, $new_or_additional_single_value)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eselect($name,-%5C%25new_single_value_by_number)">$mech-&gt;select($name, \%new_single_value_by_number)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eselect($name,-%5C@new_list_of_values)">$mech-&gt;select($name, \@new_list_of_values)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eselect($name,-%5C%25new_list_of_values_by_number)">$mech-&gt;select($name, \%new_list_of_values_by_number)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eset_fields(-$name-=%3E-$value-...-)">$mech-&gt;set_fields( $name =&gt; $value ... )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eset_fields(-$name-=%3E-%5C@value_and_instance_number-)">$mech-&gt;set_fields( $name =&gt; \@value_and_instance_number )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eset_fields(-$name-=%3E-%5C$value_instance_number-)">$mech-&gt;set_fields( $name =&gt; \$value_instance_number )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eset_fields(-$name-=%3E-%5C@file_upload-)">$mech-&gt;set_fields( $name =&gt; \@file_upload )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eset_visible(-@criteria-)">$mech-&gt;set_visible( @criteria )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Etick(-$name,-$value-%5B,-$set%5D-)">$mech-&gt;tick( $name, $value [, $set] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Euntick($name,-$value)">$mech-&gt;untick($name, $value)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Evalue(-$name-%5B,-$number%5D-)">$mech-&gt;value( $name [, $number] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">$mech-&gt;click( $button [, $x, $y] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eclick_button(-...-)">$mech-&gt;click_button( ... )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Esubmit()">$mech-&gt;submit()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Esubmit_form(-...-)">$mech-&gt;submit_form( ... )</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#MISCELLANEOUS-METHODS">MISCELLANEOUS METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eadd_header(-name-=%3E-$value-%5B,-name-=%3E-$value...-%5D-)">$mech-&gt;add_header( name =&gt; $value [, name =&gt; $value... ] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Edelete_header(-name-%5B,-name-...-%5D-)">$mech-&gt;delete_header( name [, name ... ] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Equiet(true/false)">$mech-&gt;quiet(true/false)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eautocheck(true/false)">$mech-&gt;autocheck(true/false)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Estack_depth(-$max_depth-)">$mech-&gt;stack_depth( $max_depth )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Esave_content(-$filename,-%25opts-)">$mech-&gt;save_content( $filename, %opts )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Edump_headers(-%5B$fh%5D-)">$mech-&gt;dump_headers( [$fh] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Edump_links(-%5B%5B$fh%5D,-$absolute%5D-)">$mech-&gt;dump_links( [[$fh], $absolute] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Edump_images(-%5B%5B$fh%5D,-$absolute%5D-)">$mech-&gt;dump_images( [[$fh], $absolute] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Edump_forms(-%5B$fh%5D-)">$mech-&gt;dump_forms( [$fh] )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Edump_text(-%5B$fh%5D-)">$mech-&gt;dump_text( [$fh] )</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#OVERRIDDEN-LWP::UserAgent-METHODS">OVERRIDDEN LWP::UserAgent METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eclone()">$mech-&gt;clone()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eredirect_ok()">$mech-&gt;redirect_ok()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Erequest(-$request-%5B,-$arg-%5B,-$size%5D%5D)">$mech-&gt;request( $request [, $arg [, $size]])</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eupdate_html(-$html-)">$mech-&gt;update_html( $html )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ecredentials(-$username,-$password-)">$mech-&gt;credentials( $username, $password )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eget_basic_credentials(-$realm,-$uri,-$isproxy-)">$mech-&gt;get_basic_credentials( $realm, $uri, $isproxy )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eclear_credentials()">$mech-&gt;clear_credentials()</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#INHERITED-UNCHANGED-LWP::UserAgent-METHODS">INHERITED UNCHANGED LWP::UserAgent METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3Ehead()">$mech-&gt;head()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Emirror()">$mech-&gt;mirror()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Esimple_request()">$mech-&gt;simple_request()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eis_protocol_supported()">$mech-&gt;is_protocol_supported()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eprepare_request()">$mech-&gt;prepare_request()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3Eprogress()">$mech-&gt;progress()</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#INTERNAL-ONLY-METHODS">INTERNAL-ONLY METHODS</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#$mech-%3E_update_page($request,-$response)">$mech-&gt;_update_page($request, $response)</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3E_modify_request(-$req-)">$mech-&gt;_modify_request( $req )</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3E_make_request()">$mech-&gt;_make_request()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3E_reset_page()">$mech-&gt;_reset_page()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3E_extract_links()">$mech-&gt;_extract_links()</a></li>
      <li><a href="./WWW::Mechanize.html#$mech-%3E_push_page_stack()">$mech-&gt;_push_page_stack()</a></li>
      <li><a href="./WWW::Mechanize.html#warn(-@messages-)">warn( @messages )</a></li>
      <li><a href="./WWW::Mechanize.html#die(-@messages-)">die( @messages )</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#BEST-PRACTICES">BEST PRACTICES</a></li>
  <li><a href="./WWW::Mechanize.html#WWW::MECHANIZE&#39;S-GIT-REPOSITORY">WWW::MECHANIZE&#39;S GIT REPOSITORY</a></li>
  <li><a href="./WWW::Mechanize.html#OTHER-DOCUMENTATION">OTHER DOCUMENTATION</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#Spidering-Hacks,-by-Kevin-Hemenway-and-Tara-Calishain">Spidering Hacks, by Kevin Hemenway and Tara Calishain</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#ONLINE-RESOURCES-AND-SUPPORT">ONLINE RESOURCES AND SUPPORT</a></li>
  <li><a href="./WWW::Mechanize.html#ARTICLES-ABOUT-WWW::MECHANIZE">ARTICLES ABOUT WWW::MECHANIZE</a>
    <ul>
      <li><a href="./WWW::Mechanize.html#Other-modules-that-use-Mechanize">Other modules that use Mechanize</a></li>
    </ul>
  </li>
  <li><a href="./WWW::Mechanize.html#ACKNOWLEDGEMENTS">ACKNOWLEDGEMENTS</a></li>
  <li><a href="./WWW::Mechanize.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./WWW::Mechanize.html#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>WWW::Mechanize - Handy web browsing in a Perl object</p>

<h1 id="VERSION">VERSION</h1>

<p>version 2.18</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<p>WWW::Mechanize supports performing a sequence of page fetches including following links and submitting forms. Each fetched page is parsed and its links and forms are extracted. A link or a form can be selected, form fields can be filled and the next page can be fetched. Mech also stores a history of the URLs you&#39;ve visited, which can be queried and revisited.</p>

<pre><code>    use WWW::Mechanize ();
    my $mech = WWW::Mechanize-&gt;new();

    $mech-&gt;get( $url );

    $mech-&gt;follow_link( n =&gt; 3 );
    $mech-&gt;follow_link( text_regex =&gt; qr/download this/i );
    $mech-&gt;follow_link( url =&gt; &#39;http://host.com/index.html&#39; );

    $mech-&gt;submit_form(
        form_number =&gt; 3,
        fields      =&gt; {
            username    =&gt; &#39;mungo&#39;,
            password    =&gt; &#39;lost-and-alone&#39;,
        }
    );

    $mech-&gt;submit_form(
        form_name =&gt; &#39;search&#39;,
        fields    =&gt; { query  =&gt; &#39;pot of gold&#39;, },
        button    =&gt; &#39;Search Now&#39;
    );

    # Enable strict form processing to catch typos and non-existant form fields.
    my $strict_mech = WWW::Mechanize-&gt;new( strict_forms =&gt; 1);

    $strict_mech-&gt;get( $url );

    # This method call will die, saving you lots of time looking for the bug.
    $strict_mech-&gt;submit_form(
        form_number =&gt; 3,
        fields      =&gt; {
            usernaem     =&gt; &#39;mungo&#39;,           # typo in field name
            password     =&gt; &#39;lost-and-alone&#39;,
            extra_field  =&gt; 123,               # field does not exist
        }
    );</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><code>WWW::Mechanize</code>, or Mech for short, is a Perl module for stateful programmatic web browsing, used for automating interaction with websites.</p>

<p>Features include:</p>

<ul>

<li><p>All HTTP methods</p>

</li>
<li><p>High-level hyperlink and HTML form support, without having to parse HTML yourself</p>

</li>
<li><p>SSL support</p>

</li>
<li><p>Automatic cookies</p>

</li>
<li><p>Custom HTTP headers</p>

</li>
<li><p>Automatic handling of redirections</p>

</li>
<li><p>Proxies</p>

</li>
<li><p>HTTP authentication</p>

</li>
</ul>

<p>Mech is well suited for use in testing web applications. If you use one of the Test::*, like <a href="https://metacpan.org/pod/Test::HTML::Lint">Test::HTML::Lint</a> modules, you can check the fetched content and use that as input to a test call.</p>

<pre><code>    use Test::More;
    like( $mech-&gt;content(), qr/$expected/, &quot;Got expected content&quot; );</code></pre>

<p>Each page fetch stores its URL in a history stack which you can traverse.</p>

<pre><code>    $mech-&gt;back();</code></pre>

<p>If you want finer control over your page fetching, you can use these methods. <code><a href="./WWW::Mechanize.html#$mech-%3Efollow_link(...)">follow_link()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Esubmit_form(-...-)">submit_form()</a></code> are just high level wrappers around them.</p>

<pre><code>    $mech-&gt;find_link( n =&gt; $number );
    $mech-&gt;form_number( $number );
    $mech-&gt;form_name( $name );
    $mech-&gt;field( $name, $value );
    $mech-&gt;set_fields( %field_values );
    $mech-&gt;set_visible( @criteria );
    $mech-&gt;click( $button );</code></pre>

<p><a href="./WWW::Mechanize.html">WWW::Mechanize</a> is a proper subclass of <a href="./LWP::UserAgent.html">LWP::UserAgent</a> and you can also use any of <a href="./LWP::UserAgent.html">LWP::UserAgent</a>&#39;s methods.</p>

<pre><code>    $mech-&gt;add_header($name =&gt; $value);</code></pre>

<p>Please note that Mech does NOT support JavaScript, you need additional software for that. Please check <a href="https://metacpan.org/pod/distribution/WWW-Mechanize/lib/WWW/Mechanize/FAQ.pod#JavaScript">&quot;JavaScript&quot; in WWW::Mechanize::FAQ</a> for more.</p>

<h1 id="IMPORTANT-LINKS"><a id="IMPORTANT"></a>IMPORTANT LINKS</h1>

<ul>

<li><p><a href="https://github.com/libwww-perl/WWW-Mechanize/issues">https://github.com/libwww-perl/WWW-Mechanize/issues</a></p>

<p>The queue for bugs &amp; enhancements in WWW::Mechanize. Please note that the queue at <a href="http://rt.cpan.org">http://rt.cpan.org</a> is no longer maintained.</p>

</li>
<li><p><a href="./WWW::Mechanize.html">https://metacpan.org/pod/WWW::Mechanize</a></p>

<p>The CPAN documentation page for Mechanize.</p>

</li>
<li><p><a href="https://metacpan.org/pod/distribution/WWW-Mechanize/lib/WWW/Mechanize/FAQ.pod">https://metacpan.org/pod/distribution/WWW-Mechanize/lib/WWW/Mechanize/FAQ.pod</a></p>

<p>Frequently asked questions. Make sure you read here FIRST.</p>

</li>
</ul>

<h1 id="CONSTRUCTOR-AND-STARTUP"><a id="CONSTRUCTOR"></a>CONSTRUCTOR AND STARTUP</h1>

<h2 id="new()"><a id="new"></a>new()</h2>

<p>Creates and returns a new WWW::Mechanize object, hereafter referred to as the &quot;agent&quot;.</p>

<pre><code>    my $mech = WWW::Mechanize-&gt;new()</code></pre>

<p>The constructor for WWW::Mechanize overrides two of the params to the LWP::UserAgent constructor:</p>

<pre><code>    agent =&gt; &#39;WWW-Mechanize/#.##&#39;
    cookie_jar =&gt; {}    # an empty, memory-only HTTP::Cookies object</code></pre>

<p>You can override these overrides by passing params to the constructor, as in:</p>

<pre><code>    my $mech = WWW::Mechanize-&gt;new( agent =&gt; &#39;wonderbot 1.01&#39; );</code></pre>

<p>If you want none of the overhead of a cookie jar, or don&#39;t want your bot accepting cookies, you have to explicitly disallow it, like so:</p>

<pre><code>    my $mech = WWW::Mechanize-&gt;new( cookie_jar =&gt; undef );</code></pre>

<p>Here are the params that WWW::Mechanize recognizes. These do not include params that <a href="./LWP::UserAgent.html">LWP::UserAgent</a> recognizes.</p>

<ul>

<li><p><code>autocheck =&gt; [0|1]</code></p>

<p>Checks each request made to see if it was successful. This saves you the trouble of manually checking yourself. Any errors found are errors, not warnings.</p>

<p>The default value is ON, unless it&#39;s being subclassed, in which case it is OFF. This means that standalone <a href="./WWW::Mechanize.html">WWW::Mechanize</a> instances have autocheck turned on, which is protective for the vast majority of Mech users who don&#39;t bother checking the return value of <code><a href="./WWW::Mechanize.html#$mech-%3Eget(-$uri-)">get()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Epost(-$uri,-content-=%3E-$content-)">post()</a></code> and can&#39;t figure why their code fails. However, if <a href="./WWW::Mechanize.html">WWW::Mechanize</a> is subclassed, such as for <a href="https://metacpan.org/pod/Test::WWW::Mechanize">Test::WWW::Mechanize</a> or <a href="https://metacpan.org/pod/Test::WWW::Mechanize::Catalyst">Test::WWW::Mechanize::Catalyst</a>, this may not be an appropriate default, so it&#39;s off.</p>

</li>
<li><p><code>noproxy =&gt; [0|1]</code></p>

<p>Turn off the automatic call to the <a href="./LWP::UserAgent.html">LWP::UserAgent</a> <code>env_proxy</code> function.</p>

<p>This needs to be explicitly turned off if you&#39;re using <a href="https://metacpan.org/pod/Crypt::SSLeay">Crypt::SSLeay</a> to access a https site via a proxy server. Note: you still need to set your HTTPS_PROXY environment variable as appropriate.</p>

</li>
<li><p><code>onwarn =&gt; \&amp;func</code></p>

<p>Reference to a <code>warn</code>-compatible function, such as <code><a href="https://metacpan.org/pod/Carp">Carp</a>::carp</code>, that is called when a warning needs to be shown.</p>

<p>If this is set to <code>undef</code>, no warnings will ever be shown. However, it&#39;s probably better to use the <code>quiet</code> method to control that behavior.</p>

<p>If this value is not passed, Mech uses <code>Carp::carp</code> if <a href="https://metacpan.org/pod/Carp">Carp</a> is installed, or <code>CORE::warn</code> if not.</p>

</li>
<li><p><code>onerror =&gt; \&amp;func</code></p>

<p>Reference to a <code>die</code>-compatible function, such as <code><a href="https://metacpan.org/pod/Carp">Carp</a>::croak</code>, that is called when there&#39;s a fatal error.</p>

<p>If this is set to <code>undef</code>, no errors will ever be shown.</p>

<p>If this value is not passed, Mech uses <code>Carp::croak</code> if <a href="https://metacpan.org/pod/Carp">Carp</a> is installed, or <code>CORE::die</code> if not.</p>

</li>
<li><p><code>quiet =&gt; [0|1]</code></p>

<p>Don&#39;t complain on warnings. Setting <code>quiet =&gt; 1</code> is the same as calling <code>$mech-&gt;quiet(1)</code>. Default is off.</p>

</li>
<li><p><code>stack_depth =&gt; $value</code></p>

<p>Sets the depth of the page stack that keeps track of all the downloaded pages. Default is effectively infinite stack size. If the stack is eating up your memory, then set this to a smaller number, say 5 or 10. Setting this to zero means Mech will keep no history.</p>

</li>
</ul>

<p>In addition, WWW::Mechanize also allows you to globally enable strict and verbose mode for form handling, which is done with <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a>.</p>

<ul>

<li><p><code>strict_forms =&gt; [0|1]</code></p>

<p>Globally sets the HTML::Form strict flag which causes form submission to croak if any of the passed fields don&#39;t exist in the form, and/or a value doesn&#39;t exist in a select element. This can still be disabled in individual calls to <code><a href="./WWW::Mechanize.html#$mech-%3Esubmit_form(-...-)">submit_form()</a></code>.</p>

<p>Default is off.</p>

</li>
<li><p><code>verbose_forms =&gt; [0|1]</code></p>

<p>Globally sets the HTML::Form verbose flag which causes form submission to warn about any bad HTML form constructs found. This cannot be disabled later.</p>

<p>Default is off.</p>

</li>
<li><p><code>marked_sections =&gt; [0|1]</code></p>

<p>Globally sets the HTML::Parser marked sections flag which causes HTML <code>CDATA[[</code> sections to be honoured. This cannot be disabled later.</p>

<p>Default is on.</p>

</li>
</ul>

<p>To support forms, WWW::Mechanize&#39;s constructor pushes POST on to the agent&#39;s <code>requests_redirectable</code> list (see also <a href="./LWP::UserAgent.html">LWP::UserAgent</a>.)</p>

<h2 id="$mech-&gt;agent_alias(-$alias-)"><a id="mech--agent_alias---alias"></a>$mech-&gt;agent_alias( $alias )</h2>

<p>Sets the user agent string to the expanded version from a table of actual user strings. <code>$alias</code> can be one of the following:</p>

<ul>

<li><p>Windows IE 6</p>

</li>
<li><p>Windows Mozilla</p>

</li>
<li><p>Mac Safari</p>

</li>
<li><p>Mac Mozilla</p>

</li>
<li><p>Linux Mozilla</p>

</li>
<li><p>Linux Konqueror</p>

</li>
</ul>

<p>then it will be replaced with a more interesting one. For instance,</p>

<pre><code>    $mech-&gt;agent_alias( &#39;Windows IE 6&#39; );</code></pre>

<p>sets your User-Agent to</p>

<pre><code>    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)</code></pre>

<p>The list of valid aliases can be returned from <code><a href="./WWW::Mechanize.html#$mech-%3Eknown_agent_aliases()">known_agent_aliases()</a></code>. The current list is:</p>

<ul>

<li><p>Windows IE 6</p>

</li>
<li><p>Windows Mozilla</p>

</li>
<li><p>Mac Safari</p>

</li>
<li><p>Mac Mozilla</p>

</li>
<li><p>Linux Mozilla</p>

</li>
<li><p>Linux Konqueror</p>

</li>
</ul>

<h2 id="$mech-&gt;known_agent_aliases()"><a id="mech--known_agent_aliases"></a>$mech-&gt;known_agent_aliases()</h2>

<p>Returns a list of all the agent aliases that Mech knows about. This can also be called as a package or class method.</p>

<pre><code>    @aliases = WWW::Mechanize::known_agent_aliases();
    @aliases = WWW::Mechanize-&gt;known_agent_aliases();
    @aliases = $mech-&gt;known_agent_aliases();</code></pre>

<h1 id="PAGE-FETCHING-METHODS"><a id="PAGE"></a>PAGE-FETCHING METHODS</h1>

<h2 id="$mech-&gt;get(-$uri-)"><a id="mech--get---uri"></a>$mech-&gt;get( $uri )</h2>

<p>Given a URL/URI, fetches it. Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object. <code>$uri</code> can be a well-formed URL string, a <a href="URI.html">URI</a> object, or a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object.</p>

<p>The results are stored internally in the agent object, but you don&#39;t know that. Just use the accessors listed below. Poking at the internals is deprecated and subject to change in the future.</p>

<p><code>get()</code> is a well-behaved overloaded version of the method in <a href="./LWP::UserAgent.html">LWP::UserAgent</a>. This lets you do things like</p>

<pre><code>    $mech-&gt;get( $uri, &#39;:content_file&#39; =&gt; $filename );</code></pre>

<p>and you can rest assured that the params will get filtered down appropriately. See <a href="./LWP::UserAgent.html#get">&quot;get&quot; in LWP::UserAgent</a> for more details.</p>

<p><b>NOTE:</b> The file in <code>:content_file</code> will contain the raw content of the response. If the response content is encoded (e.g. gzip encoded), the file will be encoded as well. Use $mech-&gt;save_content if you need the decoded content.</p>

<p><b>NOTE:</b> Because <code>:content_file</code> causes the page contents to be stored in a file instead of the response object, some Mech functions that expect it to be there won&#39;t work as expected. Use with caution.</p>

<p>Here is a non-complete list of methods that do not work as expected with <code>:content_file</code>: <code> <a href="./WWW::Mechanize.html#$mech-%3Eforms()">forms()</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Ecurrent_form()">current_form()</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Elinks()">links()</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Etitle()">title()</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Econtent(...)">content(...)</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Etext()">text()</a> </code>, all <a href="./WWW::Mechanize.html#CONTENT-HANDLING-METHODS">content-handling methods</a>, all <a href="./WWW::Mechanize.html#LINK-METHODS">link methods</a>, all <a href="./WWW::Mechanize.html#IMAGE-METHODS">image methods</a>, all <a href="./WWW::Mechanize.html#FORM-METHODS">form methods</a>, all <a href="./WWW::Mechanize.html#FIELD-METHODS">field methods</a>, <code> <a href="./WWW::Mechanize.html#$mech-%3Esave_content(-$filename,-%25opts-)">save_content(...)</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Edump_links(-%5B%5B$fh%5D,-$absolute%5D-)">dump_links(...)</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Edump_images(-%5B%5B$fh%5D,-$absolute%5D-)">dump_images(...)</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Edump_forms(-%5B$fh%5D-)">dump_forms(...)</a> </code>, <code> <a href="./WWW::Mechanize.html#$mech-%3Edump_text(-%5B$fh%5D-)">dump_text(...)</a> </code></p>

<h2 id="$mech-&gt;post(-$uri,-content-=&gt;-$content-)"><a id="mech--post---uri--content----content"></a>$mech-&gt;post( $uri, content =&gt; $content )</h2>

<p>POSTs <code>$content</code> to <code>$uri</code>. Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object. <code>$uri</code> can be a well-formed URI string, a <a href="URI.html">URI</a> object, or a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object.</p>

<h2 id="$mech-&gt;put(-$uri,-content-=&gt;-$content-)"><a id="mech--put---uri--content----content"></a>$mech-&gt;put( $uri, content =&gt; $content )</h2>

<p>PUTs <code>$content</code> to <code>$uri</code>. Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object. <code>$uri</code> can be a well-formed URI string, a <a href="URI.html">URI</a> object, or a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object.</p>

<pre><code>    my $res = $mech-&gt;put( $uri );
    my $res = $mech-&gt;put( $uri , $field_name =&gt; $value, ... );</code></pre>

<h2 id="$mech-&gt;head-($uri-)"><a id="mech--head--uri"></a>$mech-&gt;head ($uri )</h2>

<p>Performs a HEAD request to <code>$uri</code>. Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object. <code>$uri</code> can be a well-formed URI string, a <a href="URI.html">URI</a> object, or a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object.</p>

<h2 id="$mech-&gt;delete-($uri-)"><a id="mech--delete--uri"></a>$mech-&gt;delete ($uri )</h2>

<p>Performs a DELETE request to <code>$uri</code>. Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object. <code>$uri</code> can be a well-formed URI string, a <a href="URI.html">URI</a> object, or a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object.</p>

<h2 id="$mech-&gt;reload()"><a id="mech--reload"></a>$mech-&gt;reload()</h2>

<p>Acts like the reload button in a browser: repeats the current request. The history (as per the <a href="./WWW::Mechanize.html#$mech-%3Eback()">back()</a> method) is not altered.</p>

<p>Returns the <a href="./HTTP::Response.html">HTTP::Response</a> object from the reload, or <code>undef</code> if there&#39;s no current request.</p>

<h2 id="$mech-&gt;back()"><a id="mech--back"></a>$mech-&gt;back()</h2>

<p>The equivalent of hitting the &quot;back&quot; button in a browser. Returns to the previous page. Won&#39;t go back past the first page. (Really, what would it do if it could?)</p>

<p>Returns true if it could go back, or false if not.</p>

<h2 id="$mech-&gt;clear_history()"><a id="mech--clear_history"></a>$mech-&gt;clear_history()</h2>

<p>This deletes all the history entries and returns true.</p>

<h2 id="$mech-&gt;history_count()"><a id="mech--history_count"></a>$mech-&gt;history_count()</h2>

<p>This returns the number of items in the browser history. This number <i>does</i> include the most recently made request.</p>

<h2 id="$mech-&gt;history($n)"><a id="mech--history-n"></a>$mech-&gt;history($n)</h2>

<p>This returns the <i>n</i>th item in history. The 0th item is the most recent request and response, which would be acted on by methods like <code><a href="./WWW::Mechanize.html#$mech-%3Efind_link(-...-)">find_link()</a></code>. The 1st item is the state you&#39;d return to if you called <code><a href="./WWW::Mechanize.html#$mech-%3Eback()">back()</a></code>.</p>

<p>The maximum useful value for <code>$n</code> is <code>$mech-&gt;history_count - 1</code>. Requests beyond that bound will return <code>undef</code>.</p>

<p>History items are returned as hash references, in the form:</p>

<pre><code>  { req =&gt; $http_request, res =&gt; $http_response }</code></pre>

<h1 id="STATUS-METHODS"><a id="STATUS"></a>STATUS METHODS</h1>

<h2 id="$mech-&gt;success()"><a id="mech--success"></a>$mech-&gt;success()</h2>

<p>Returns a boolean telling whether the last request was successful. If there hasn&#39;t been an operation yet, returns false.</p>

<p>This is a convenience function that wraps <code>$mech-&gt;res-&gt;is_success</code>.</p>

<h2 id="$mech-&gt;uri()"><a id="mech--uri"></a>$mech-&gt;uri()</h2>

<p>Returns the current URI as a <a href="URI.html">URI</a> object. This object stringifies to the URI itself.</p>

<h2 id="$mech-&gt;response()-/-$mech-&gt;res()"><a id="mech--response-----mech--res"></a>$mech-&gt;response() / $mech-&gt;res()</h2>

<p>Return the current response as an <a href="./HTTP::Response.html">HTTP::Response</a> object.</p>

<p>Synonym for <code>$mech-&gt;response()</code>.</p>

<h2 id="$mech-&gt;status()"><a id="mech--status"></a>$mech-&gt;status()</h2>

<p>Returns the HTTP status code of the response. This is a 3-digit number like 200 for OK, 404 for not found, and so on.</p>

<h2 id="$mech-&gt;ct()-/-$mech-&gt;content_type()"><a id="mech--ct-----mech--content_type"></a>$mech-&gt;ct() / $mech-&gt;content_type()</h2>

<p>Returns the content type of the response.</p>

<h2 id="$mech-&gt;base()"><a id="mech--base"></a>$mech-&gt;base()</h2>

<p>Returns the base URI for the current response</p>

<h2 id="$mech-&gt;forms()"><a id="mech--forms"></a>$mech-&gt;forms()</h2>

<p>When called in a list context, returns a list of the forms found in the last fetched page. In a scalar context, returns a reference to an array with those forms. The forms returned are all <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> objects.</p>

<h2 id="$mech-&gt;current_form()"><a id="mech--current_form"></a>$mech-&gt;current_form()</h2>

<p>Returns the current form as an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object.</p>

<h2 id="$mech-&gt;links()"><a id="mech--links"></a>$mech-&gt;links()</h2>

<p>When called in a list context, returns a list of the links found in the last fetched page. In a scalar context it returns a reference to an array with those links. Each link is a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object.</p>

<h2 id="$mech-&gt;is_html()"><a id="mech--is_html"></a>$mech-&gt;is_html()</h2>

<p>Returns true/false on whether our content is HTML, according to the HTTP headers.</p>

<h2 id="$mech-&gt;title()"><a id="mech--title"></a>$mech-&gt;title()</h2>

<p>Returns the contents of the <code>&lt;TITLE&gt;</code> tag, as parsed by <a href="https://metacpan.org/pod/HTML::HeadParser">HTML::HeadParser</a>. Returns <code>undef</code> if the content is not HTML.</p>

<h2 id="$mech-&gt;redirects()"><a id="mech--redirects"></a>$mech-&gt;redirects()</h2>

<p>Convenience method to get the <a href="./HTTP::Response.html#$r-%3Eredirects">redirects</a> from the most recent <a href="./HTTP::Response.html">HTTP::Response</a>.</p>

<p>Note that you can also use <a href="./HTTP::Response.html#$r-%3Eis_redirect">is_redirect</a> to see if the most recent response was a redirect like this.</p>

<pre><code>    $mech-&gt;get($url);
    do_stuff() if $mech-&gt;res-&gt;is_redirect;</code></pre>

<h1 id="CONTENT-HANDLING-METHODS"><a id="CONTENT"></a>CONTENT-HANDLING METHODS</h1>

<h2 id="$mech-&gt;content(...)"><a id="mech--content"></a>$mech-&gt;content(...)</h2>

<p>Returns the content that the mech uses internally for the last page fetched. Ordinarily this is the same as <code>$mech-&gt;response()-&gt;decoded_content()</code>, but this may differ for HTML documents if <code><a href="./WWW::Mechanize.html#$mech-%3Eupdate_html(-$html-)">update_html</a></code> is overloaded (in which case the value passed to the base-class implementation of same will be returned), and/or extra named arguments are passed to <code>content()</code>:</p>

<dl>

<dt id="$mech-&gt;content(-format-=&gt;-&#39;text&#39;-)"><a id="mech--content--format----text"></a><i>$mech-&gt;content( format =&gt; &#39;text&#39; )</i></dt>
<dd>

<p>Returns a text-only version of the page, with all HTML markup stripped. This feature requires <a href="./HTML::TreeBuilder.html">HTML::TreeBuilder</a> version 5 or higher to be installed, or a fatal error will be thrown. This works only if the contents are HTML.</p>

</dd>
<dt id="$mech-&gt;content(-base_href-=&gt;-[$base_href|undef]-)"><a id="mech--content--base_href----base_href-undef"></a><i>$mech-&gt;content( base_href =&gt; [$base_href|undef] )</i></dt>
<dd>

<p>Returns the HTML document, modified to contain a <code>&lt;base href=&quot;$base_href&quot;&gt;</code> mark-up in the header. <code>$base_href</code> is <code>$mech-&gt;base()</code> if not specified. This is handy to pass the HTML to e.g. <a href="https://metacpan.org/pod/HTML::Display">HTML::Display</a>. This works only if the contents are HTML.</p>

</dd>
<dt id="$mech-&gt;content(-raw-=&gt;-1-)"><a id="mech--content--raw---1"></a><i>$mech-&gt;content( raw =&gt; 1 )</i></dt>
<dd>

<p>Returns <code>$self-&gt;response()-&gt;content()</code>, i.e. the raw contents from the response.</p>

</dd>
<dt id="$mech-&gt;content(-decoded_by_headers-=&gt;-1-)"><a id="mech--content--decoded_by_headers---1"></a><i>$mech-&gt;content( decoded_by_headers =&gt; 1 )</i></dt>
<dd>

<p>Returns the content after applying all <code>Content-Encoding</code> headers but with not additional mangling.</p>

</dd>
<dt id="$mech-&gt;content(-charset-=&gt;-$charset-)"><a id="mech--content--charset----charset"></a><i>$mech-&gt;content( charset =&gt; $charset )</i></dt>
<dd>

<p>Returns <code>$self-&gt;response()-&gt;decoded_content(charset =&gt; $charset)</code> (see <a href="./HTTP::Response.html">HTTP::Response</a> for details).</p>

</dd>
</dl>

<p>To preserve backwards compatibility, additional parameters will be ignored unless none of <code>raw | decoded_by_headers | charset</code> is specified and the text is HTML, in which case an error will be triggered.</p>

<p>A fresh instance of WWW::Mechanize will return <code>undef</code> when <code>$mech-&gt;content()</code> is called, because no content is present before a request has been made.</p>

<h2 id="$mech-&gt;text()"><a id="mech--text"></a>$mech-&gt;text()</h2>

<p>Returns the text of the current HTML content. If the content isn&#39;t HTML, <code>$mech</code> will die.</p>

<p>The text is extracted by parsing the content, and then the extracted text is cached, so don&#39;t worry about performance of calling this repeatedly.</p>

<h1 id="LINK-METHODS"><a id="LINK"></a>LINK METHODS</h1>

<h2 id="$mech-&gt;links()1"><a id="mech--links1"></a>$mech-&gt;links()</h2>

<p>Lists all the links on the current page. Each link is a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object. In list context, returns a list of all links. In scalar context, returns an array reference of all links.</p>

<h2 id="$mech-&gt;follow_link(...)"><a id="mech--follow_link"></a>$mech-&gt;follow_link(...)</h2>

<p>Follows a specified link on the page. You specify the match to be found using the same params that <code><a href="./WWW::Mechanize.html#$mech-%3Efind_link(-...-)">find_link()</a></code> uses.</p>

<p>Here some examples:</p>

<ul>

<li><p>3rd link called &quot;download&quot;</p>

<pre><code>    $mech-&gt;follow_link( text =&gt; &#39;download&#39;, n =&gt; 3 );</code></pre>

</li>
<li><p>first link where the URL has &quot;download&quot; in it, regardless of case:</p>

<pre><code>    $mech-&gt;follow_link( url_regex =&gt; qr/download/i );</code></pre>

<p>or</p>

<pre><code>    $mech-&gt;follow_link( url_regex =&gt; qr/(?i:download)/ );</code></pre>

</li>
<li><p>3rd link on the page</p>

<pre><code>    $mech-&gt;follow_link( n =&gt; 3 );</code></pre>

</li>
<li><p>the link with the url</p>

<pre><code>    $mech-&gt;follow_link( url =&gt; &#39;/other/page&#39; );</code></pre>

<p>or</p>

<pre><code>    $mech-&gt;follow_link( url =&gt; &#39;http://example.com/page&#39; );</code></pre>

</li>
</ul>

<p>Returns the result of the <code>GET</code> method (an <a href="./HTTP::Response.html">HTTP::Response</a> object) if a link was found.</p>

<p>If the page has no links, or the specified link couldn&#39;t be found, returns <code>undef</code>. If <code>autocheck</code> is enabled an exception will be thrown instead.</p>

<h2 id="$mech-&gt;find_link(-...-)"><a id="mech--find_link"></a>$mech-&gt;find_link( ... )</h2>

<p>Finds a link in the currently fetched page. It returns a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object which describes the link. (You&#39;ll probably be most interested in the <code><a href="https://metacpan.org/pod/WWW::Mechanize::Link#$link-%3Eurl()">url()</a></code> property.) If it fails to find a link it returns <code>undef</code>.</p>

<p>You can take the URL part and pass it to the <code>get()</code> method. If that&#39;s your plan, you might as well use the <code><a href="./WWW::Mechanize.html#$mech-%3Efollow_link(...)">follow_link()</a></code> method directly, since it does the <code>get()</code> for you automatically.</p>

<p>Note that <code>&lt;FRAME SRC=&quot;...&quot;&gt;</code> tags are parsed out of the HTML and treated as links so this method works with them.</p>

<p>You can select which link to find by passing in one or more of these key/value pairs:</p>

<ul>

<li><p><code>text =&gt; &#39;string&#39;,</code> and <code>text_regex =&gt; qr/regex/,</code></p>

<p><code>text</code> matches the text of the link against <i>string</i>, which must be an exact match. To select a link with text that is exactly &quot;download&quot;, use</p>

<pre><code>    $mech-&gt;find_link( text =&gt; &#39;download&#39; );</code></pre>

<p><code>text_regex</code> matches the text of the link against <i>regex</i>. To select a link with text that has &quot;download&quot; anywhere in it, regardless of case, use</p>

<pre><code>    $mech-&gt;find_link( text_regex =&gt; qr/download/i );</code></pre>

<p>Note that the text extracted from the page&#39;s links are trimmed. For example, <code>&lt;a&gt; foo &lt;/a&gt;</code> is stored as &#39;foo&#39;, and searching for leading or trailing spaces will fail.</p>

</li>
<li><p><code>url =&gt; &#39;string&#39;,</code> and <code>url_regex =&gt; qr/regex/,</code></p>

<p>Matches the URL of the link against <i>string</i> or <i>regex</i>, as appropriate. The URL may be a relative URL, like <i>foo/bar.html</i>, depending on how it&#39;s coded on the page.</p>

</li>
<li><p><code>url_abs =&gt; string</code> and <code>url_abs_regex =&gt; regex</code></p>

<p>Matches the absolute URL of the link against <i>string</i> or <i>regex</i>, as appropriate. The URL will be an absolute URL, even if it&#39;s relative in the page.</p>

</li>
<li><p><code>name =&gt; string</code> and <code>name_regex =&gt; regex</code></p>

<p>Matches the name of the link against <i>string</i> or <i>regex</i>, as appropriate.</p>

</li>
<li><p><code>rel =&gt; string</code> and <code>rel_regex =&gt; regex</code></p>

<p>Matches the rel of the link against <i>string</i> or <i>regex</i>, as appropriate. This can be used to find stylesheets, favicons, or links the author of the page does not want bots to follow.</p>

</li>
<li><p><code>id =&gt; string</code> and <code>id_regex =&gt; regex</code></p>

<p>Matches the attribute &#39;id&#39; of the link against <i>string</i> or <i>regex</i>, as appropriate.</p>

</li>
<li><p><code>class =&gt; string</code> and <code>class_regex =&gt; regex</code></p>

<p>Matches the attribute &#39;class&#39; of the link against <i>string</i> or <i>regex</i>, as appropriate.</p>

</li>
<li><p><code>tag =&gt; string</code> and <code>tag_regex =&gt; regex</code></p>

<p>Matches the tag that the link came from against <i>string</i> or <i>regex</i>, as appropriate. The <code>tag_regex</code> is probably most useful to check for more than one tag, as in:</p>

<pre><code>    $mech-&gt;find_link( tag_regex =&gt; qr/^(a|frame)$/ );</code></pre>

<p>The tags and attributes looked at are defined below.</p>

</li>
</ul>

<p>If <code>n</code> is not specified, it defaults to 1. Therefore, if you don&#39;t specify any params, this method defaults to finding the first link on the page.</p>

<p>Note that you can specify multiple text or URL parameters, which will be ANDed together. For example, to find the first link with text of &quot;News&quot; and with &quot;cnn.com&quot; in the URL, use:</p>

<pre><code>    $mech-&gt;find_link( text =&gt; &#39;News&#39;, url_regex =&gt; qr/cnn\.com/ );</code></pre>

<p>The return value is a reference to an array containing a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object for every link in <code><a href="./WWW::Mechanize.html#$mech-%3Econtent(...)">$self-&gt;content</a></code>.</p>

<p>The links come from the following:</p>

<dl>

<dt id="&lt;a-href=...&gt;"><a id="a-href"></a><code>&lt;a href=...&gt;</code></dt>
<dd>

</dd>
<dt id="&lt;area-href=...&gt;"><a id="area-href"></a><code>&lt;area href=...&gt;</code></dt>
<dd>

</dd>
<dt id="&lt;frame-src=...&gt;"><a id="frame-src"></a><code>&lt;frame src=...&gt;</code></dt>
<dd>

</dd>
<dt id="&lt;iframe-src=...&gt;"><a id="iframe-src"></a><code>&lt;iframe src=...&gt;</code></dt>
<dd>

</dd>
<dt id="&lt;link-href=...&gt;"><a id="link-href"></a><code>&lt;link href=...&gt;</code></dt>
<dd>

</dd>
<dt id="&lt;meta-content=...&gt;"><a id="meta-content"></a><code>&lt;meta content=...&gt;</code></dt>
<dd>

</dd>
</dl>

<h2 id="$mech-&gt;find_all_links(-...-)"><a id="mech--find_all_links"></a>$mech-&gt;find_all_links( ... )</h2>

<p>Returns all the links on the current page that match the criteria. The method for specifying link criteria is the same as in <code><a href="./WWW::Mechanize.html#$mech-%3Efind_link(-...-)">find_link()</a></code>. Each of the links returned is a <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> object.</p>

<p>In list context, <code>find_all_links()</code> returns a list of the links. Otherwise, it returns a reference to the list of links.</p>

<p><code>find_all_links()</code> with no parameters returns all links in the page.</p>

<h2 id="$mech-&gt;find_all_inputs(-...-criteria-...-)"><a id="mech--find_all_inputs--...-criteria"></a>$mech-&gt;find_all_inputs( ... criteria ... )</h2>

<p><code>find_all_inputs()</code> returns an array of all the input controls in the current form whose properties match all of the regexes passed in. The controls returned are all descended from HTML::Form::Input. See <a href="https://metacpan.org/pod/HTML::Form#INPUTS">&quot;INPUTS&quot; in HTML::Form</a> for details.</p>

<p>If no criteria are passed, all inputs will be returned.</p>

<p>If there is no current page, there is no form on the current page, or there are no submit controls in the current form then the return will be an empty array.</p>

<p>You may use a regex or a literal string:</p>

<pre><code>    # get all textarea controls whose names begin with &quot;customer&quot;
    my @customer_text_inputs = $mech-&gt;find_all_inputs(
        type       =&gt; &#39;textarea&#39;,
        name_regex =&gt; qr/^customer/,
    );

    # get all text or textarea controls called &quot;customer&quot;
    my @customer_text_inputs = $mech-&gt;find_all_inputs(
        type_regex =&gt; qr/^(text|textarea)$/,
        name       =&gt; &#39;customer&#39;,
    );</code></pre>

<h2 id="$mech-&gt;find_all_submits(-...-criteria-...-)"><a id="mech--find_all_submits--...-criteria"></a>$mech-&gt;find_all_submits( ... criteria ... )</h2>

<p><code>find_all_submits()</code> does the same thing as <code><a href="./WWW::Mechanize.html#$mech-%3Efind_all_inputs(-...-criteria-...-)">find_all_inputs()</a></code> except that it only returns controls that are submit controls, ignoring other types of input controls like text and checkboxes.</p>

<h1 id="IMAGE-METHODS"><a id="IMAGE"></a>IMAGE METHODS</h1>

<h2 id="$mech-&gt;images"><a id="mech--images"></a>$mech-&gt;images</h2>

<p>Lists all the images on the current page. Each image is a <a href="https://metacpan.org/pod/WWW::Mechanize::Image">WWW::Mechanize::Image</a> object. In list context, returns a list of all images. In scalar context, returns an array reference of all images.</p>

<h2 id="$mech-&gt;find_image()"><a id="mech--find_image"></a>$mech-&gt;find_image()</h2>

<p>Finds an image in the current page. It returns a <a href="https://metacpan.org/pod/WWW::Mechanize::Image">WWW::Mechanize::Image</a> object which describes the image. If it fails to find an image it returns <code>undef</code>.</p>

<p>You can select which image to find by passing in one or more of these key/value pairs:</p>

<ul>

<li><p><code>alt =&gt; &#39;string&#39;</code> and <code>alt_regex =&gt; qr/regex/</code></p>

<p><code>alt</code> matches the ALT attribute of the image against <i>string</i>, which must be an exact match. To select a image with an ALT tag that is exactly &quot;download&quot;, use</p>

<pre><code>    $mech-&gt;find_image( alt =&gt; &#39;download&#39; );</code></pre>

<p><code>alt_regex</code> matches the ALT attribute of the image against a regular expression. To select an image with an ALT attribute that has &quot;download&quot; anywhere in it, regardless of case, use</p>

<pre><code>    $mech-&gt;find_image( alt_regex =&gt; qr/download/i );</code></pre>

</li>
<li><p><code>url =&gt; &#39;string&#39;</code> and <code>url_regex =&gt; qr/regex/</code></p>

<p>Matches the URL of the image against <i>string</i> or <i>regex</i>, as appropriate. The URL may be a relative URL, like <i>foo/bar.html</i>, depending on how it&#39;s coded on the page.</p>

</li>
<li><p><code>url_abs =&gt; string</code> and <code>url_abs_regex =&gt; regex</code></p>

<p>Matches the absolute URL of the image against <i>string</i> or <i>regex</i>, as appropriate. The URL will be an absolute URL, even if it&#39;s relative in the page.</p>

</li>
<li><p><code>tag =&gt; string</code> and <code>tag_regex =&gt; regex</code></p>

<p>Matches the tag that the image came from against <i>string</i> or <i>regex</i>, as appropriate. The <code>tag_regex</code> is probably most useful to check for more than one tag, as in:</p>

<pre><code>    $mech-&gt;find_image( tag_regex =&gt; qr/^(img|input)$/ );</code></pre>

<p>The tags supported are <code>&lt;img&gt;</code> and <code>&lt;input&gt;</code>.</p>

</li>
<li><p><code>id =&gt; string</code> and <code>id_regex =&gt; regex</code></p>

<p><code>id</code> matches the id attribute of the image against <i>string</i>, which must be an exact match. To select an image with the exact id &quot;download-image&quot;, use</p>

<pre><code>    $mech-&gt;find_image( id =&gt; &#39;download-image&#39; );</code></pre>

<p><code>id_regex</code> matches the id attribute of the image against a regular expression. To select the first image with an id that contains &quot;download&quot; anywhere in it, use</p>

<pre><code>    $mech-&gt;find_image( id_regex =&gt; qr/download/ );</code></pre>

</li>
<li><p><code>classs =&gt; string</code> and <code>class_regex =&gt; regex</code></p>

<p><code>class</code> matches the class attribute of the image against <i>string</i>, which must be an exact match. To select an image with the exact class &quot;img-fuid&quot;, use</p>

<pre><code>    $mech-&gt;find_image( class =&gt; &#39;img-fluid&#39; );</code></pre>

<p>To select an image with the class attribute &quot;rounded float-left&quot;, use</p>

<pre><code>    $mech-&gt;find_image( class =&gt; &#39;rounded float-left&#39; );</code></pre>

<p>Note that the classes have to be matched as a complete string, in the exact order they appear in the website&#39;s source code.</p>

<p><code>class_regex</code> matches the class attribute of the image against a regular expression. Use this if you want a partial class name, or if an image has several classes, but you only care about one.</p>

<p>To select the first image with the class &quot;rounded&quot;, where there are multiple images that might also have either class &quot;float-left&quot; or &quot;float-right&quot;, use</p>

<pre><code>    $mech-&gt;find_image( class_regex =&gt; qr/\brounded\b/ );</code></pre>

<p>Selecting an image with multiple classes where you do not care about the order they appear in the website&#39;s source code is not currently supported.</p>

</li>
</ul>

<p>If <code>n</code> is not specified, it defaults to 1. Therefore, if you don&#39;t specify any params, this method defaults to finding the first image on the page.</p>

<p>Note that you can specify multiple ALT or URL parameters, which will be ANDed together. For example, to find the first image with ALT text of &quot;News&quot; and with &quot;cnn.com&quot; in the URL, use:</p>

<pre><code>    $mech-&gt;find_image( image =&gt; &#39;News&#39;, url_regex =&gt; qr/cnn\.com/ );</code></pre>

<p>The return value is a reference to an array containing a <a href="https://metacpan.org/pod/WWW::Mechanize::Image">WWW::Mechanize::Image</a> object for every image in <code><a href="./WWW::Mechanize.html#$mech-%3Econtent(...)">$mech-&gt;content</a></code>.</p>

<h2 id="$mech-&gt;find_all_images(-...-)"><a id="mech--find_all_images"></a>$mech-&gt;find_all_images( ... )</h2>

<p>Returns all the images on the current page that match the criteria. The method for specifying image criteria is the same as in <code><a href="./WWW::Mechanize.html#$mech-%3Efind_image()">find_image()</a></code>. Each of the images returned is a <a href="https://metacpan.org/pod/WWW::Mechanize::Image">WWW::Mechanize::Image</a> object.</p>

<p>In list context, <code>find_all_images()</code> returns a list of the images. Otherwise, it returns a reference to the list of images.</p>

<p><code>find_all_images()</code> with no parameters returns all images in the page.</p>

<h1 id="FORM-METHODS"><a id="FORM"></a>FORM METHODS</h1>

<p>These methods let you work with the forms on a page. The idea is to choose a form that you&#39;ll later work with using the field methods below.</p>

<h2 id="$mech-&gt;forms"><a id="mech--forms1"></a>$mech-&gt;forms</h2>

<p>Lists all the forms on the current page. Each form is an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object. In list context, returns a list of all forms. In scalar context, returns an array reference of all forms.</p>

<h2 id="$mech-&gt;form_number($number)"><a id="mech--form_number-number"></a>$mech-&gt;form_number($number)</h2>

<p>Selects the <i>number</i>th form on the page as the target for subsequent calls to <code><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">field()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>. Also returns the form that was selected.</p>

<p>If it is found, the form is returned as an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object and set internally for later use with Mech&#39;s form methods such as <code><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">field()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>. When called in a list context, the number of the found form is also returned as a second value.</p>

<p>Emits a warning and returns <code>undef</code> if no form is found.</p>

<p>The first form is number 1, not zero.</p>

<h2 id="$mech-&gt;form_action(-$action-)"><a id="mech--form_action---action"></a>$mech-&gt;form_action( $action )</h2>

<p>Selects a form by action, using a regex containing <code>$action</code>. If there is more than one form on the page matching that action, then the first one is used, and a warning is generated.</p>

<p>If it is found, the form is returned as an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object and set internally for later use with Mech&#39;s form methods such as <code><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">field()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>.</p>

<p>Returns <code>undef</code> if no form is found.</p>

<h2 id="$mech-&gt;form_name(-$name-[,-\%args-]-)"><a id="mech--form_name---name----args"></a>$mech-&gt;form_name( $name [, \%args ] )</h2>

<p>Selects a form by name.</p>

<p>By default, the first form that has this name will be returned.</p>

<pre><code>    my $form = $mech-&gt;form_name(&quot;order_form&quot;);</code></pre>

<p>If you want the second, third or nth match, pass an optional arguments hash reference as the final parameter with a key <code>n</code> to pick which instance you want. The numbering starts at 1.</p>

<pre><code>    my $third_product_form = $mech-&gt;form_name(&quot;buy_now&quot;, { n =&gt; 3 });</code></pre>

<p>If the <code>n</code> parameter is not passed, and there is more than one form on the page with that name, then the first one is used, and a warning is generated.</p>

<p>If it is found, the form is returned as an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object and set internally for later use with Mech&#39;s form methods such as <code><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">field()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>.</p>

<p>Returns <code>undef</code> if no form is found.</p>

<h2 id="$mech-&gt;form_id(-$id-[,-\%args-]-)"><a id="mech--form_id---id----args"></a>$mech-&gt;form_id( $id [, \%args ] )</h2>

<p>Selects a form by ID.</p>

<p>By default, the first form that has this ID will be returned.</p>

<pre><code>    my $form = $mech-&gt;form_id(&quot;order_form&quot;);</code></pre>

<p>Although the HTML specification requires the ID to be unique within a page, some pages might not adhere to that. If you want the second, third or nth match, pass an optional arguments hash reference as the final parameter with a key <code>n</code> to pick which instance you want. The numbering starts at 1.</p>

<pre><code>    my $third_product_form = $mech-&gt;form_id(&quot;buy_now&quot;, { n =&gt; 3 });</code></pre>

<p>If the <code>n</code> parameter is not passed, and there is more than one form on the page with that ID, then the first one is used, and a warning is generated.</p>

<p>If it is found, the form is returned as an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object and set internally for later use with Mech&#39;s form methods such as <code><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">field()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>.</p>

<p>If no form is found it returns <code>undef</code>. This will also trigger a warning, unless <code>quiet</code> is enabled.</p>

<h2 id="$mech-&gt;all_forms_with_fields(-@fields-)"><a id="mech--all_forms_with_fields---fields"></a>$mech-&gt;all_forms_with_fields( @fields )</h2>

<p>Selects a form by passing in a list of field names it must contain. All matching forms (perhaps none) are returned as a list of <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> objects.</p>

<h2 id="$mech-&gt;form_with_fields(-@fields,-[-\%args-]-)"><a id="mech--form_with_fields---fields-----args"></a>$mech-&gt;form_with_fields( @fields, [ \%args ] )</h2>

<p>Selects a form by passing in a list of field names it must contain. By default, the first form that matches all of these field names will be returned.</p>

<pre><code>    my $form = $mech-&gt;form_with_fields( qw/sku quantity add_to_cart/ );</code></pre>

<p>If you want the second, third or nth match, pass an optional arguments hash reference as the final parameter with a key <code>n</code> to pick which instance you want. The numbering starts at 1.</p>

<pre><code>    my $form = $mech-&gt;form_with_fields( &#39;sky&#39;, &#39;qty&#39;, { n =&gt; 2 } );</code></pre>

<p>If the <code>n</code> parameter is not passed, and there is more than one form on the page with that ID, then the first one is used, and a warning is generated.</p>

<p>If it is found, the form is returned as an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object and set internally for later used with Mech&#39;s form methods such as <code><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">field()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>.</p>

<p>Returns <code>undef</code> and emits a warning if no form is found.</p>

<p>Note that this functionality requires libwww-perl 5.69 or higher.</p>

<h2 id="$mech-&gt;all_forms_with(-$attr1-=&gt;-$value1,-$attr2-=&gt;-$value2,-...-)"><a id="mech--all_forms_with---attr1----value1---attr2----value2"></a>$mech-&gt;all_forms_with( $attr1 =&gt; $value1, $attr2 =&gt; $value2, ... )</h2>

<p>Searches for forms with arbitrary attribute/value pairs within the &lt;form&gt; tag. When given more than one pair, all criteria must match. Using <code>undef</code> as value means that the attribute in question must not be present.</p>

<p>All matching forms (perhaps none) are returned as a list of <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> objects.</p>

<h2 id="$mech-&gt;form_with(-$attr1-=&gt;-$value1,-$attr2-=&gt;-$value2,-...,-[-\%args-]-)"><a id="mech--form_with---attr1----value1---attr2----value2--...-----args"></a>$mech-&gt;form_with( $attr1 =&gt; $value1, $attr2 =&gt; $value2, ..., [ \%args ] )</h2>

<p>Searches for forms with arbitrary attribute/value pairs within the &lt;form&gt; tag. When given more than one pair, all criteria must match. Using <code>undef</code> as value means that the attribute in question must not be present.</p>

<p>By default, the first form that matches all criteria will be returned.</p>

<pre><code>    my $form = $mech-&gt;form_with( name =&gt; &#39;order_form&#39;, method =&gt; &#39;POST&#39; );</code></pre>

<p>If you want the second, third or nth match, pass an optional arguments hash reference as the final parameter with a key <code>n</code> to pick which instance you want. The numbering starts at 1.</p>

<pre><code>    my $form = $mech-&gt;form_with( method =&gt; &#39;POST&#39;, { n =&gt; 4 } );</code></pre>

<p>If the <code>n</code> parameter is not passed, and there is more than one form on the page matching these criteria, then the first one is used, and a warning is generated.</p>

<p>If it is found, the form is returned as an <a href="https://metacpan.org/pod/HTML::Form">HTML::Form</a> object and set internally for later used with Mech&#39;s form methods such as <code><a href="./WWW::Mechanize.html#$mech-%3Efield(-$name,-$value,-$number-)">field()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>.</p>

<p>Returns <code>undef</code> if no form is found.</p>

<h1 id="FIELD-METHODS"><a id="FIELD"></a>FIELD METHODS</h1>

<p>These methods allow you to set the values of fields in a given form.</p>

<h2 id="$mech-&gt;field(-$name,-$value,-$number-)"><a id="mech--field---name---value---number"></a>$mech-&gt;field( $name, $value, $number )</h2>

<h2 id="$mech-&gt;field(-$name,-\@values,-$number-)"><a id="mech--field---name---values---number"></a>$mech-&gt;field( $name, \@values, $number )</h2>

<h2 id="$mech-&gt;field(-$name,-\@file_upload_values,-$number-)"><a id="mech--field---name---file_upload_values---number"></a>$mech-&gt;field( $name, \@file_upload_values, $number )</h2>

<p>Given the name of a field, set its value to the value specified. This applies to the current form (as set by the <code><a href="./WWW::Mechanize.html#$mech-%3Eform_name(-$name-%5B,-%5C%25args-%5D-)">form_name()</a></code> or <code><a href="./WWW::Mechanize.html#$mech-%3Eform_number($number)">form_number()</a></code> method or defaulting to the first form on the page).</p>

<p>If the field is of type &quot;file&quot;, its value should be an arrayref. Example:</p>

<pre><code>    $mech-&gt;field( $file_input, [&#39;/tmp/file.txt&#39;] );</code></pre>

<p>Value examples for &quot;file&quot; inputs, followed by explanation of what each index mean:</p>

<pre><code>    # 0: filepath      1: filename    3: headers
    [&#39;/tmp/file.txt&#39;]
    [&#39;/tmp/file.txt&#39;, &#39;filename.txt&#39;]
    [&#39;/tmp/file.txt&#39;, &#39;filename.txt&#39;, @headers]
    [&#39;/tmp/file.txt&#39;, &#39;filename.txt&#39;, Content =&gt; &#39;some content&#39;]
    [undef,           &#39;filename.txt&#39;, Content =&gt; &#39;content here&#39;]</code></pre>

<p>Index 0 is the <i>filepath</i> that will be read from disk. Index 1 is the filename which will be used in the HTTP request body; if not given, filepath (index 0) is used instead. If <code>Content =&gt; &#39;content here&#39;</code> is used as shown, then <i>filepath</i> will be ignored.</p>

<p>The optional <code>$number</code> parameter is used to distinguish between two fields with the same name. The fields are numbered from 1.</p>

<h2 id="$mech-&gt;select($name,-$new_or_additional_single_value)"><a id="mech--select-name---new_or_additional_single_value"></a>$mech-&gt;select($name, $new_or_additional_single_value)</h2>

<h2 id="$mech-&gt;select($name,-\%new_single_value_by_number)"><a id="mech--select-name---new_single_value_by_number"></a>$mech-&gt;select($name, \%new_single_value_by_number)</h2>

<h2 id="$mech-&gt;select($name,-\@new_list_of_values)"><a id="mech--select-name---new_list_of_values"></a>$mech-&gt;select($name, \@new_list_of_values)</h2>

<h2 id="$mech-&gt;select($name,-\%new_list_of_values_by_number)"><a id="mech--select-name---new_list_of_values_by_number"></a>$mech-&gt;select($name, \%new_list_of_values_by_number)</h2>

<p>Given the name of a <code>select</code> field, set its value to the value specified.</p>

<pre><code>    # select &#39;foo&#39;
    $mech-&gt;select($name, &#39;foo&#39;);</code></pre>

<p>If the field is not <code>&lt;select multiple&gt;</code> and the <code>$value</code> is an array reference, only the <b>first</b> value will be set. [Note: until version 1.05_03 the documentation claimed that only the last value would be set, but this was incorrect.]</p>

<pre><code>    # select &#39;bar&#39;
    $mech-&gt;select($name, [&#39;bar&#39;, &#39;ignored&#39;, &#39;ignored&#39;]);</code></pre>

<p>Passing <code>$value</code> as a hash reference with an <code>n</code> key selects an item by number.</p>

<pre><code>    # select the third value
    $mech-&gt;select($name, {n =&gt; 3});</code></pre>

<p>The numbering starts at 1. This applies to the current form.</p>

<p>If you have a field with <code>&lt;select multiple&gt;</code> and you pass a single <code>$value</code>, then <code>$value</code> will be added to the list of fields selected, without clearing the others.</p>

<pre><code>    # add &#39;bar&#39; to the list of selected values
    $mech-&gt;select($name, &#39;bar&#39;);</code></pre>

<p>However, if you pass an array reference, then all previously selected values will be cleared and replaced with all values inside the array reference.</p>

<pre><code>    # replace the selection with &#39;foo&#39; and &#39;bar&#39;
    $mech-&gt;select($name, [&#39;foo&#39;, &#39;bar&#39;]);</code></pre>

<p>This also works when selecting by numbers, in which case the value of the <code>n</code> key will be an array reference of value numbers you want to replace the selection with.</p>

<pre><code>    # replace the selection with the 2nd and 4th element
    $mech-&gt;select($name, {n =&gt; [2, 4]});</code></pre>

<p>To add multiple additional values to the list of selected fields without clearing, call <code>select</code> in the simple <code>$value</code> form with each single value in a loop.</p>

<pre><code>    # add all values in the array to the selection
    $mech-&gt;select($name, $_) for @additional_values;</code></pre>

<p>Returns true on successfully setting the value. On failure, returns false and calls <code>$self-&gt;warn()</code> with an error message.</p>

<h2 id="$mech-&gt;set_fields(-$name-=&gt;-$value-...-)"><a id="mech--set_fields---name----value"></a>$mech-&gt;set_fields( $name =&gt; $value ... )</h2>

<h2 id="$mech-&gt;set_fields(-$name-=&gt;-\@value_and_instance_number-)"><a id="mech--set_fields---name----value_and_instance_number"></a>$mech-&gt;set_fields( $name =&gt; \@value_and_instance_number )</h2>

<h2 id="$mech-&gt;set_fields(-$name-=&gt;-\$value_instance_number-)"><a id="mech--set_fields---name----value_instance_number"></a>$mech-&gt;set_fields( $name =&gt; \$value_instance_number )</h2>

<h2 id="$mech-&gt;set_fields(-$name-=&gt;-\@file_upload-)"><a id="mech--set_fields---name----file_upload"></a>$mech-&gt;set_fields( $name =&gt; \@file_upload )</h2>

<p>This method sets multiple fields of the current form. It takes a list of field name and value pairs. If there is more than one field with the same name, the first one found is set. If you want to select which of the duplicate field to set, use a value which is an anonymous array which has the field value and its number as the 2 elements.</p>

<pre><code>        # set the second $name field to &#39;foo&#39;
        $mech-&gt;set_fields( $name =&gt; [ &#39;foo&#39;, 2 ] );</code></pre>

<p>The value of a field of type &quot;file&quot; should be an arrayref as described in <code><a href="https://metacpan.org/pod/$mech-&gt;field(&#32;$name,&#32;$value,&#32;$number&#32;)">field()</a></code>. Examples:</p>

<pre><code>        $mech-&gt;set_fields( $file_field =&gt; [&#39;/tmp/file.txt&#39;] );
        $mech-&gt;set_fields( $file_field =&gt; [&#39;/tmp/file.txt&#39;, &#39;filename.txt&#39;] );</code></pre>

<p>The value for a &quot;file&quot; input can also be an arrayref containing an arrayref and a number, as documented in <code><a href="https://metacpan.org/pod/$mech-&gt;submit_form(&#32;...&#32;)">submit_form()</a></code>. The number will be used to find the field in the form. Example:</p>

<pre><code>        $mech-&gt;set_fields( $file_field =&gt; [[&#39;/tmp/file.txt&#39;], 1] );</code></pre>

<p>The fields are numbered from 1.</p>

<p>For fields that have a predefined set of values, you may also provide a reference to an integer, if you don&#39;t know the options for the field, but you know you just want (e.g.) the first one.</p>

<pre><code>        # select the first value in the $name select box
        $mech-&gt;set_fields( $name =&gt; \0 );
        # select the last value in the $name select box
        $mech-&gt;set_fields( $name =&gt; \-1 );</code></pre>

<p>This applies to the current form.</p>

<h2 id="$mech-&gt;set_visible(-@criteria-)"><a id="mech--set_visible---criteria"></a>$mech-&gt;set_visible( @criteria )</h2>

<p>This method sets fields of the current form without having to know their names. So if you have a login screen that wants a username and password, you do not have to fetch the form and inspect the source (or use the <i>mech-dump</i> utility, installed with WWW::Mechanize) to see what the field names are; you can just say</p>

<pre><code>    $mech-&gt;set_visible( $username, $password );</code></pre>

<p>and the first and second fields will be set accordingly. The method is called set_<i>visible</i> because it acts only on visible fields; hidden form inputs are not considered. The order of the fields is the order in which they appear in the HTML source which is nearly always the order anyone viewing the page would think they are in, but some creative work with tables could change that; caveat user.</p>

<p>Each element in <code>@criteria</code> is either a field value or a field specifier. A field value is a scalar. A field specifier allows you to specify the <i>type</i> of input field you want to set and is denoted with an arrayref containing two elements. So you could specify the first radio button with</p>

<pre><code>    $mech-&gt;set_visible( [ radio =&gt; &#39;KCRW&#39; ] );</code></pre>

<p>Field values and specifiers can be intermixed, hence</p>

<pre><code>    $mech-&gt;set_visible( &#39;fred&#39;, &#39;secret&#39;, [ option =&gt; &#39;Checking&#39; ] );</code></pre>

<p>would set the first two fields to &quot;fred&quot; and &quot;secret&quot;, and the <i>next</i> <code>OPTION</code> menu field to &quot;Checking&quot;.</p>

<p>The possible field specifier types are: &quot;text&quot;, &quot;password&quot;, &quot;hidden&quot;, &quot;textarea&quot;, &quot;file&quot;, &quot;image&quot;, &quot;submit&quot;, &quot;radio&quot;, &quot;checkbox&quot; and &quot;option&quot;.</p>

<p><code>set_visible</code> returns the number of values set.</p>

<h2 id="$mech-&gt;tick(-$name,-$value-[,-$set]-)"><a id="mech--tick---name---value----set"></a>$mech-&gt;tick( $name, $value [, $set] )</h2>

<p>&quot;Ticks&quot; the first checkbox that has both the name and value associated with it on the current form. If there is no value to the input, just pass an empty string as the value. Dies if there is no named checkbox for the value given, if a value is given. Passing in a false value as the third optional argument will cause the checkbox to be unticked. The third value does not need to be set if you wish to merely tick the box.</p>

<pre><code>    $mech-&gt;tick(&#39;extra&#39;, &#39;cheese&#39;);
    $mech-&gt;tick(&#39;extra&#39;, &#39;mushrooms&#39;);

    $mech-&gt;tick(&#39;no_value&#39;, &#39;&#39;); # &lt;input type=&quot;checkbox&quot; name=&quot;no_value&quot;&gt;</code></pre>

<h2 id="$mech-&gt;untick($name,-$value)"><a id="mech--untick-name---value"></a>$mech-&gt;untick($name, $value)</h2>

<p>Causes the checkbox to be unticked. Shorthand for <code>tick($name,$value,undef)</code></p>

<h2 id="$mech-&gt;value(-$name-[,-$number]-)"><a id="mech--value---name----number"></a>$mech-&gt;value( $name [, $number] )</h2>

<p>Given the name of a field, return its value. This applies to the current form.</p>

<p>The optional <code>$number</code> parameter is used to distinguish between two fields with the same name. The fields are numbered from 1.</p>

<p>If the field is of type file (file upload field), the value is always cleared to prevent remote sites from downloading your local files. To upload a file, specify its file name explicitly.</p>

<h2 id="$mech-&gt;click(-$button-[,-$x,-$y]-)"><a id="mech--click---button----x---y"></a>$mech-&gt;click( $button [, $x, $y] )</h2>

<p>Has the effect of clicking a button on the current form. The first argument is the name of the button to be clicked. The second and third arguments (optional) allow you to specify the (x,y) coordinates of the click.</p>

<p>If there is only one button on the form, <code>$mech-&gt;click()</code> with no arguments simply clicks that one button.</p>

<p>Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object.</p>

<h2 id="$mech-&gt;click_button(-...-)"><a id="mech--click_button"></a>$mech-&gt;click_button( ... )</h2>

<p>Has the effect of clicking a button on the current form by specifying its attributes. The arguments are a list of key/value pairs. Only one of name, id, number, input or value must be specified in the keys.</p>

<p>Dies if no button is found.</p>

<ul>

<li><p><code>name =&gt; name</code></p>

<p>Clicks the button named <i>name</i> in the current form.</p>

</li>
<li><p><code>id =&gt; id</code></p>

<p>Clicks the button with the id <i>id</i> in the current form.</p>

</li>
<li><p><code>number =&gt; n</code></p>

<p>Clicks the <i>n</i>th button with type <i>submit</i> in the current form. Numbering starts at 1.</p>

</li>
<li><p><code>value =&gt; value</code></p>

<p>Clicks the button with the value <i>value</i> in the current form.</p>

</li>
<li><p><code>input =&gt; $inputobject</code></p>

<p>Clicks on the button referenced by <code>$inputobject</code>, an instance of <a href="https://metacpan.org/pod/HTML::Form::SubmitInput">HTML::Form::SubmitInput</a> obtained e.g. from</p>

<pre><code>    $mech-&gt;current_form()-&gt;find_input( undef, &#39;submit&#39; )</code></pre>

<p><code>$inputobject</code> must belong to the current form.</p>

</li>
<li><p><code>x =&gt; x</code></p>

</li>
<li><p><code>y =&gt; y</code></p>

<p>These arguments (optional) allow you to specify the (x,y) coordinates of the click.</p>

</li>
</ul>

<h2 id="$mech-&gt;submit()"><a id="mech--submit"></a>$mech-&gt;submit()</h2>

<p>Submits the current form, without specifying a button to click. Actually, no button is clicked at all.</p>

<p>Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object.</p>

<p>This used to be a synonym for <code>$mech-&gt;click( &#39;submit&#39; )</code>, but is no longer so.</p>

<h2 id="$mech-&gt;submit_form(-...-)"><a id="mech--submit_form"></a>$mech-&gt;submit_form( ... )</h2>

<p>This method lets you select a form from the previously fetched page, fill in its fields, and submit it. It combines the <code>form_number</code>/<code>form_name</code>, <code>set_fields</code> and <code>click</code> methods into one higher level call. Its arguments are a list of key/value pairs, all of which are optional.</p>

<ul>

<li><p><code>fields =&gt; \%fields</code></p>

<p>Specifies the fields to be filled in the current form.</p>

</li>
<li><p><code>with_fields =&gt; \%fields</code></p>

<p>Probably all you need for the common case. It combines a smart form selector and data setting in one operation. It selects the first form that contains all fields mentioned in <code>\%fields</code>. This is nice because you don&#39;t need to know the name or number of the form to do this.</p>

<p>(calls <code><a href="./WWW::Mechanize.html#$mech-%3Eform_with_fields(-@fields,-%5B-%5C%25args-%5D-)">form_with_fields()</a></code> and <code><a href="./WWW::Mechanize.html#$mech-%3Eset_fields(-$name-=%3E-$value-...-)">set_fields()</a></code>).</p>

<p>If you choose <code>with_fields</code>, the <code>fields</code> option will be ignored. The <code>form_number</code>, <code>form_name</code> and <code>form_id</code> options will still be used. An exception will be thrown unless exactly one form matches all of the provided criteria.</p>

</li>
<li><p><code>form_number =&gt; n</code></p>

<p>Selects the <i>n</i>th form (calls <code><a href="./WWW::Mechanize.html#$mech-%3Eform_number($number)">form_number()</a></code>. If this param is not specified, the currently-selected form is used.</p>

</li>
<li><p><code>form_name =&gt; name</code></p>

<p>Selects the form named <i>name</i> (calls <code><a href="./WWW::Mechanize.html#$mech-%3Eform_name(-$name-%5B,-%5C%25args-%5D-)">form_name()</a></code>)</p>

</li>
<li><p><code>form_id =&gt; ID</code></p>

<p>Selects the form with ID <i>ID</i> (calls <code><a href="./WWW::Mechanize.html#$mech-%3Eform_name(-$name-%5B,-%5C%25args-%5D-)">form_id()</a></code>)</p>

</li>
<li><p><code>button =&gt; button</code></p>

<p>Clicks on button <i>button</i> (calls <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code>)</p>

</li>
<li><p><code>x =&gt; x, y =&gt; y</code></p>

<p>Sets the x or y values for <code><a href="./WWW::Mechanize.html#$mech-%3Eclick(-$button-%5B,-$x,-$y%5D-)">click()</a></code></p>

</li>
<li><p><code>strict_forms =&gt; bool</code></p>

<p>Sets the HTML::Form strict flag which causes form submission to croak if any of the passed fields don&#39;t exist on the page, and/or a value doesn&#39;t exist in a select element. By default HTML::Form sets this value to false.</p>

<p>This behavior can also be turned on globally by passing <code>strict_forms =&gt; 1</code> to <code>WWW::Mechanize-&gt;new</code>. If you do that, you can still disable it for individual calls by passing <code>strict_forms =&gt; 0</code> here.</p>

</li>
</ul>

<p>If no form is selected, the first form found is used.</p>

<p>If <i>button</i> is not passed, then the <code><a href="./WWW::Mechanize.html#$mech-%3Esubmit()">submit()</a></code> method is used instead.</p>

<p>If you want to submit a file and get its content from a scalar rather than a file in the filesystem, you can use:</p>

<pre><code>    $mech-&gt;submit_form(with_fields =&gt; { logfile =&gt; [ [ undef, &#39;whatever&#39;, Content =&gt; $content ], 1 ] } );</code></pre>

<p>Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object.</p>

<h1 id="MISCELLANEOUS-METHODS"><a id="MISCELLANEOUS"></a>MISCELLANEOUS METHODS</h1>

<h2 id="$mech-&gt;add_header(-name-=&gt;-$value-[,-name-=&gt;-$value...-]-)"><a id="mech--add_header--name----value---name----value"></a>$mech-&gt;add_header( name =&gt; $value [, name =&gt; $value... ] )</h2>

<p>Sets HTTP headers for the agent to add or remove from the HTTP request.</p>

<pre><code>    $mech-&gt;add_header( Encoding =&gt; &#39;text/klingon&#39; );</code></pre>

<p>If a <i>value</i> is <code>undef</code>, then that header will be removed from any future requests. For example, to never send a Referer header:</p>

<pre><code>    $mech-&gt;add_header( Referer =&gt; undef );</code></pre>

<p>If you want to delete a header, use <code>delete_header</code>.</p>

<p>Returns the number of name/value pairs added.</p>

<p><b>NOTE</b>: This method was very different in WWW::Mechanize before 1.00. Back then, the headers were stored in a package hash, not as a member of the object instance. Calling <code>add_header()</code> would modify the headers for every WWW::Mechanize object, even after your object no longer existed.</p>

<h2 id="$mech-&gt;delete_header(-name-[,-name-...-]-)"><a id="mech--delete_header--name---name"></a>$mech-&gt;delete_header( name [, name ... ] )</h2>

<p>Removes HTTP headers from the agent&#39;s list of special headers. For instance, you might need to do something like:</p>

<pre><code>    # Don&#39;t send a Referer for this URL
    $mech-&gt;add_header( Referer =&gt; undef );

    # Get the URL
    $mech-&gt;get( $url );

    # Back to the default behavior
    $mech-&gt;delete_header( &#39;Referer&#39; );</code></pre>

<h2 id="$mech-&gt;quiet(true/false)"><a id="mech--quiet-true-false"></a>$mech-&gt;quiet(true/false)</h2>

<p>Allows you to suppress warnings to the screen.</p>

<pre><code>    $mech-&gt;quiet(0); # turns on warnings (the default)
    $mech-&gt;quiet(1); # turns off warnings
    $mech-&gt;quiet();  # returns the current quietness status</code></pre>

<h2 id="$mech-&gt;autocheck(true/false)"><a id="mech--autocheck-true-false"></a>$mech-&gt;autocheck(true/false)</h2>

<p>Allows you to enable and disable autochecking.</p>

<p>Autocheck checks each request made to see if it was successful. This saves you the trouble of manually checking yourself. Any errors found are errors, not warnings. Please see <code><a href="./WWW::Mechanize.html#new()">new</a></code> for more details.</p>

<pre><code>    $mech-&gt;autocheck(1); # turns on automatic request checking (the default)
    $mech-&gt;autocheck(0); # turns off automatic request checking
    $mech-&gt;autocheck();  # returns the current autocheck status</code></pre>

<h2 id="$mech-&gt;stack_depth(-$max_depth-)"><a id="mech--stack_depth---max_depth"></a>$mech-&gt;stack_depth( $max_depth )</h2>

<p>Get or set the page stack depth. Use this if you&#39;re doing a lot of page scraping and running out of memory.</p>

<p>A value of <code>0</code> means &quot;no history at all.&quot; By default, the max stack depth is humongously large, effectively keeping all history.</p>

<h2 id="$mech-&gt;save_content(-$filename,-%opts-)"><a id="mech--save_content---filename---opts"></a>$mech-&gt;save_content( $filename, %opts )</h2>

<p>Dumps the contents of <code><a href="./WWW::Mechanize.html#$mech-%3Econtent(...)">$mech-&gt;content</a></code> into <code>$filename</code>. <code>$filename</code> will be overwritten. Dies if there are any errors.</p>

<p>If the content type does not begin with <code>&quot;text/&quot;</code>, then the content is saved in binary mode (i.e. <code>binmode()</code> is set on the output filehandle).</p>

<p>Additional arguments can be passed as <i>key</i>/<i>value</i> pairs:</p>

<dl>

<dt id="$mech-&gt;save_content(-$filename,-binary-=&gt;-1-)"><a id="mech--save_content---filename--binary---1"></a><i>$mech-&gt;save_content( $filename, binary =&gt; 1 )</i></dt>
<dd>

<p>Filehandle is set with <code>binmode</code> to <code>:raw</code> and contents are taken calling <code>$self-&gt;content(decoded_by_headers =&gt; 1)</code>. Same as calling:</p>

<pre><code>    $mech-&gt;save_content( $filename, binmode =&gt; &#39;:raw&#39;,
                         decoded_by_headers =&gt; 1 );</code></pre>

<p>This <i>should</i> be the safest way to save contents verbatim.</p>

</dd>
<dt id="$mech-&gt;save_content(-$filename,-binmode-=&gt;-$binmode-)"><a id="mech--save_content---filename--binmode----binmode"></a><i>$mech-&gt;save_content( $filename, binmode =&gt; $binmode )</i></dt>
<dd>

<p>Filehandle is set to binary mode. If <code>$binmode</code> begins with <code>&#39;:&#39;</code>, it is passed as a parameter to <code>binmode</code>:</p>

<pre><code>    binmode $fh, $binmode;</code></pre>

<p>otherwise the filehandle is set to binary mode if <code>$binmode</code> is true:</p>

<pre><code>    binmode $fh;</code></pre>

</dd>
<dt id="all-other-arguments"><a id="all"></a><i>all other arguments</i></dt>
<dd>

<p>are passed as-is to <code><a href="./WWW::Mechanize.html#$mech-%3Econtent(...)">$mech-&gt;content(%opts)</a></code>. In particular, <code>decoded_by_headers</code> might come handy if you want to revert the effect of line compression performed by the web server but without further interpreting the contents (e.g. decoding it according to the charset).</p>

</dd>
</dl>

<h2 id="$mech-&gt;dump_headers(-[$fh]-)"><a id="mech--dump_headers---fh"></a>$mech-&gt;dump_headers( [$fh] )</h2>

<p>Prints a dump of the HTTP response headers for the most recent response. If <code>$fh</code> is not specified or is <code>undef</code>, it dumps to STDOUT.</p>

<p>Unlike the rest of the <code>dump_*</code> methods, <code>$fh</code> can be a scalar. It will be used as a file name.</p>

<h2 id="$mech-&gt;dump_links(-[[$fh],-$absolute]-)"><a id="mech--dump_links---fh---absolute"></a>$mech-&gt;dump_links( [[$fh], $absolute] )</h2>

<p>Prints a dump of the links on the current page to <code>$fh</code>. If <code>$fh</code> is not specified or is <code>undef</code>, it dumps to STDOUT.</p>

<p>If <code>$absolute</code> is true, links displayed are absolute, not relative.</p>

<h2 id="$mech-&gt;dump_images(-[[$fh],-$absolute]-)"><a id="mech--dump_images---fh---absolute"></a>$mech-&gt;dump_images( [[$fh], $absolute] )</h2>

<p>Prints a dump of the images on the current page to <code>$fh</code>. If <code>$fh</code> is not specified or is <code>undef</code>, it dumps to STDOUT.</p>

<p>If <code>$absolute</code> is true, links displayed are absolute, not relative.</p>

<p>The output will include empty lines for images that have no <code>src</code> attribute and therefore no URL.</p>

<h2 id="$mech-&gt;dump_forms(-[$fh]-)"><a id="mech--dump_forms---fh"></a>$mech-&gt;dump_forms( [$fh] )</h2>

<p>Prints a dump of the forms on the current page to <code>$fh</code>. If <code>$fh</code> is not specified or is <code>undef</code>, it dumps to STDOUT. Running the following:</p>

<pre><code>    my $mech = WWW::Mechanize-&gt;new();
    $mech-&gt;get(&quot;https://www.google.com/&quot;);
    $mech-&gt;dump_forms;</code></pre>

<p>will print:</p>

<pre><code>    GET https://www.google.com/search [f]
      ie=ISO-8859-1                  (hidden readonly)
      hl=en                          (hidden readonly)
      source=hp                      (hidden readonly)
      biw=                           (hidden readonly)
      bih=                           (hidden readonly)
      q=                             (text)
      btnG=Google Search             (submit)
      btnI=I&#39;m Feeling Lucky         (submit)
      gbv=1                          (hidden readonly)</code></pre>

<h2 id="$mech-&gt;dump_text(-[$fh]-)"><a id="mech--dump_text---fh"></a>$mech-&gt;dump_text( [$fh] )</h2>

<p>Prints a dump of the text on the current page to <code>$fh</code>. If <code>$fh</code> is not specified or is <code>undef</code>, it dumps to STDOUT.</p>

<h1 id="OVERRIDDEN-LWP::UserAgent-METHODS"><a id="OVERRIDDEN"></a>OVERRIDDEN LWP::UserAgent METHODS</h1>

<h2 id="$mech-&gt;clone()"><a id="mech--clone"></a>$mech-&gt;clone()</h2>

<p>Clone the mech object. The clone will be using the same cookie jar as the original mech.</p>

<h2 id="$mech-&gt;redirect_ok()"><a id="mech--redirect_ok"></a>$mech-&gt;redirect_ok()</h2>

<p>An overloaded version of <code>redirect_ok()</code> in <a href="./LWP::UserAgent.html">LWP::UserAgent</a>. This method is used to determine whether a redirection in the request should be followed.</p>

<p>Note that WWW::Mechanize&#39;s constructor pushes POST on to the agent&#39;s <code>requests_redirectable</code> list.</p>

<h2 id="$mech-&gt;request(-$request-[,-$arg-[,-$size]])"><a id="mech--request---request----arg----size"></a>$mech-&gt;request( $request [, $arg [, $size]])</h2>

<p>Overloaded version of <code>request()</code> in <a href="./LWP::UserAgent.html">LWP::UserAgent</a>. Performs the actual request. Normally, if you&#39;re using WWW::Mechanize, it&#39;s because you don&#39;t want to deal with this level of stuff anyway.</p>

<p>Note that <code>$request</code> will be modified.</p>

<p>Returns an <a href="./HTTP::Response.html">HTTP::Response</a> object.</p>

<h2 id="$mech-&gt;update_html(-$html-)"><a id="mech--update_html---html"></a>$mech-&gt;update_html( $html )</h2>

<p>Allows you to replace the HTML that the mech has found. Updates the forms and links parse-trees that the mech uses internally.</p>

<p>Say you have a page that you know has malformed output, and you want to update it so the links come out correctly:</p>

<pre><code>    my $html = $mech-&gt;content;
    $html =~ s[&lt;/option&gt;.{0,3}&lt;/td&gt;][&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;]isg;
    $mech-&gt;update_html( $html );</code></pre>

<p>This method is also used internally by the mech itself to update its own HTML content when loading a page. This means that if you would like to <i>systematically</i> perform the above HTML substitution, you would overload <code>update_html</code> in a subclass thusly:</p>

<pre><code>   package MyMech;
   use base &#39;WWW::Mechanize&#39;;

   sub update_html {
       my ($self, $html) = @_;
       $html =~ s[&lt;/option&gt;.{0,3}&lt;/td&gt;][&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;]isg;
       $self-&gt;WWW::Mechanize::update_html( $html );
   }</code></pre>

<p>If you do this, then the mech will use the tidied-up HTML instead of the original both when parsing for its own needs, and for returning to you through <code><a href="./WWW::Mechanize.html#$mech-%3Econtent(...)">content()</a></code>.</p>

<p>Overloading this method is also the recommended way of implementing extra validation steps (e.g. link checkers) for every HTML page received. <code><a href="./WWW::Mechanize.html#warn(-@messages-)">warn</a></code> and <code><a href="./WWW::Mechanize.html#warn(-@messages-)">warn</a></code> would then come in handy to signal validation errors.</p>

<h2 id="$mech-&gt;credentials(-$username,-$password-)"><a id="mech--credentials---username---password"></a>$mech-&gt;credentials( $username, $password )</h2>

<p>Provide credentials to be used for HTTP Basic authentication for all sites and realms until further notice.</p>

<p>The four argument form described in <a href="./LWP::UserAgent.html">LWP::UserAgent</a> is still supported.</p>

<h2 id="$mech-&gt;get_basic_credentials(-$realm,-$uri,-$isproxy-)"><a id="mech--get_basic_credentials---realm---uri---isproxy"></a>$mech-&gt;get_basic_credentials( $realm, $uri, $isproxy )</h2>

<p>Returns the credentials for the realm and URI.</p>

<h2 id="$mech-&gt;clear_credentials()"><a id="mech--clear_credentials"></a>$mech-&gt;clear_credentials()</h2>

<p>Remove any credentials set up with <code>credentials()</code>.</p>

<h1 id="INHERITED-UNCHANGED-LWP::UserAgent-METHODS"><a id="INHERITED"></a>INHERITED UNCHANGED LWP::UserAgent METHODS</h1>

<p>As a subclass of <a href="./LWP::UserAgent.html">LWP::UserAgent</a>, WWW::Mechanize inherits all of <a href="./LWP::UserAgent.html">LWP::UserAgent</a>&#39;s methods. Many of which are overridden or extended. The following methods are inherited unchanged. View the <a href="./LWP::UserAgent.html">LWP::UserAgent</a> documentation for their implementation descriptions.</p>

<p>This is not meant to be an inclusive list. LWP::UA may have added others.</p>

<h2 id="$mech-&gt;head()"><a id="mech--head"></a>$mech-&gt;head()</h2>

<p>Inherited from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>.</p>

<h2 id="$mech-&gt;mirror()"><a id="mech--mirror"></a>$mech-&gt;mirror()</h2>

<p>Inherited from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>.</p>

<h2 id="$mech-&gt;simple_request()"><a id="mech--simple_request"></a>$mech-&gt;simple_request()</h2>

<p>Inherited from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>.</p>

<h2 id="$mech-&gt;is_protocol_supported()"><a id="mech--is_protocol_supported"></a>$mech-&gt;is_protocol_supported()</h2>

<p>Inherited from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>.</p>

<h2 id="$mech-&gt;prepare_request()"><a id="mech--prepare_request"></a>$mech-&gt;prepare_request()</h2>

<p>Inherited from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>.</p>

<h2 id="$mech-&gt;progress()"><a id="mech--progress"></a>$mech-&gt;progress()</h2>

<p>Inherited from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>.</p>

<h1 id="INTERNAL-ONLY-METHODS"><a id="INTERNAL"></a>INTERNAL-ONLY METHODS</h1>

<p>These methods are only used internally. You probably don&#39;t need to know about them.</p>

<h2 id="$mech-&gt;_update_page($request,-$response)"><a id="mech--_update_page-request---response"></a>$mech-&gt;_update_page($request, $response)</h2>

<p>Updates all internal variables in <code>$mech</code> as if <code>$request</code> was just performed, and returns $response. The page stack is <b>not</b> altered by this method, it is up to caller (e.g. <code><a href="./WWW::Mechanize.html#$mech-%3Erequest(-$request-%5B,-$arg-%5B,-$size%5D%5D)">request</a></code>) to do that.</p>

<h2 id="$mech-&gt;_modify_request(-$req-)"><a id="mech--_modify_request---req"></a>$mech-&gt;_modify_request( $req )</h2>

<p>Modifies a <a href="./HTTP::Request.html">HTTP::Request</a> before the request is sent out, for both GET and POST requests.</p>

<p>We add a <code>Referer</code> header, as well as header to note that we can accept gzip encoded content, if <a href="https://metacpan.org/pod/Compress::Zlib">Compress::Zlib</a> is installed.</p>

<h2 id="$mech-&gt;_make_request()"><a id="mech--_make_request"></a>$mech-&gt;_make_request()</h2>

<p>Convenience method to make it easier for subclasses like <a href="https://metacpan.org/pod/WWW::Mechanize::Cached">WWW::Mechanize::Cached</a> to intercept the request.</p>

<h2 id="$mech-&gt;_reset_page()"><a id="mech--_reset_page"></a>$mech-&gt;_reset_page()</h2>

<p>Resets the internal fields that track page parsed stuff.</p>

<h2 id="$mech-&gt;_extract_links()"><a id="mech--_extract_links"></a>$mech-&gt;_extract_links()</h2>

<p>Extracts links from the content of a webpage, and populates the <code>{links}</code> property with <a href="https://metacpan.org/pod/WWW::Mechanize::Link">WWW::Mechanize::Link</a> objects.</p>

<h2 id="$mech-&gt;_push_page_stack()"><a id="mech--_push_page_stack"></a>$mech-&gt;_push_page_stack()</h2>

<p>The agent keeps a stack of visited pages, which it can pop when it needs to go BACK and so on.</p>

<p>The current page needs to be pushed onto the stack before we get a new page, and the stack needs to be popped when BACK occurs.</p>

<p>Neither of these take any arguments, they just operate on the $mech object.</p>

<h2 id="warn(-@messages-)"><a id="warn"></a><a id="warn---messages"></a>warn( @messages )</h2>

<p>Centralized warning method, for diagnostics and non-fatal problems. Defaults to calling <code>CORE::warn</code>, but may be overridden by setting <code>onwarn</code> in the constructor.</p>

<h2 id="die(-@messages-)"><a id="die"></a><a id="die---messages"></a>die( @messages )</h2>

<p>Centralized error method. Defaults to calling <code>CORE::die</code>, but may be overridden by setting <code>onerror</code> in the constructor.</p>

<h1 id="BEST-PRACTICES"><a id="BEST"></a>BEST PRACTICES</h1>

<p>The default settings can get you up and running quickly, but there are settings you can change in order to make your life easier.</p>

<dl>

<dt id="autocheck">autocheck</dt>
<dd>

<p><code>autocheck</code> can save you the overhead of checking status codes for success. You may outgrow it as your needs get more sophisticated, but it&#39;s a safe option to start with.</p>

<pre><code>    my $agent = WWW::Mechanize-&gt;new( autocheck =&gt; 1 );</code></pre>

</dd>
<dt id="cookie_jar">cookie_jar</dt>
<dd>

<p>You are encouraged to install <a href="https://metacpan.org/pod/Mozilla::PublicSuffix">Mozilla::PublicSuffix</a> and use <a href="https://metacpan.org/pod/HTTP::CookieJar::LWP">HTTP::CookieJar::LWP</a> as your cookie jar. <a href="https://metacpan.org/pod/HTTP::CookieJar::LWP">HTTP::CookieJar::LWP</a> provides a better security model matching that of current Web browsers when <a href="https://metacpan.org/pod/Mozilla::PublicSuffix">Mozilla::PublicSuffix</a> is installed.</p>

<pre><code>    use HTTP::CookieJar::LWP ();

    my $jar = HTTP::CookieJar::LWP-&gt;new;
    my $agent = WWW::Mechanize-&gt;new( cookie_jar =&gt; $jar );</code></pre>

</dd>
<dt id="protocols_allowed">protocols_allowed</dt>
<dd>

<p>This option is inherited directly from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>. It may be used to allow arbitrary protocols.</p>

<pre><code>    my $agent = WWW::Mechanize-&gt;new(
        protocols_allowed =&gt; [ &#39;http&#39;, &#39;https&#39; ]
    );</code></pre>

<p>This will prevent you from inadvertently following URLs like <code>file:///etc/passwd</code></p>

</dd>
<dt id="protocols_forbidden">protocols_forbidden</dt>
<dd>

<p>This option is also inherited directly from <a href="./LWP::UserAgent.html">LWP::UserAgent</a>. It may be used to deny arbitrary protocols.</p>

<pre><code>    my $agent = WWW::Mechanize-&gt;new(
        protocols_forbidden =&gt; [ &#39;file&#39;, &#39;mailto&#39;, &#39;ssh&#39;, ]
    );</code></pre>

<p>This will prevent you from inadvertently following URLs like <code>file:///etc/passwd</code></p>

</dd>
<dt id="strict_forms">strict_forms</dt>
<dd>

<p>Consider turning on the <code>strict_forms</code> option when you create a new Mech. This will perform a helpful sanity check on form fields every time you are submitting a form, which can save you a lot of debugging time.</p>

<pre><code>    my $agent = WWW::Mechanize-&gt;new( strict_forms =&gt; 1 );</code></pre>

<p>If you do not want to have this option globally, you can still turn it on for individual forms.</p>

<pre><code>    $agent-&gt;submit_form( fields =&gt; { foo =&gt; &#39;bar&#39; } , strict_forms =&gt; 1 );</code></pre>

</dd>
</dl>

<h1 id="WWW::MECHANIZE&#39;S-GIT-REPOSITORY"><a id="WWW"></a><a id="WWW::MECHANIZE-S-GIT-REPOSITORY"></a>WWW::MECHANIZE&#39;S GIT REPOSITORY</h1>

<p>WWW::Mechanize is hosted at GitHub.</p>

<p>Repository: <a href="https://github.com/libwww-perl/WWW-Mechanize">https://github.com/libwww-perl/WWW-Mechanize</a>. Bugs: <a href="https://github.com/libwww-perl/WWW-Mechanize/issues">https://github.com/libwww-perl/WWW-Mechanize/issues</a>.</p>

<h1 id="OTHER-DOCUMENTATION"><a id="OTHER"></a>OTHER DOCUMENTATION</h1>

<h2 id="Spidering-Hacks,-by-Kevin-Hemenway-and-Tara-Calishain"><a id="Spidering"></a><a id="Spidering-Hacks--by-Kevin-Hemenway-and-Tara-Calishain"></a><i>Spidering Hacks</i>, by Kevin Hemenway and Tara Calishain</h2>

<p><i>Spidering Hacks</i> from O&#39;Reilly (<a href="http://www.oreilly.com/catalog/spiderhks/">http://www.oreilly.com/catalog/spiderhks/</a>) is a great book for anyone wanting to know more about screen-scraping and spidering.</p>

<p>There are six hacks that use Mech or a Mech derivative:</p>

<dl>

<dt id="#21-WWW::Mechanize-101"><a id="WWW::Mechanize-101"></a>#21 WWW::Mechanize 101</dt>
<dd>

</dd>
<dt id="#22-Scraping-with-WWW::Mechanize"><a id="Scraping-with-WWW::Mechanize"></a>#22 Scraping with WWW::Mechanize</dt>
<dd>

</dd>
<dt id="#36-Downloading-Images-from-Webshots"><a id="Downloading-Images-from-Webshots"></a>#36 Downloading Images from Webshots</dt>
<dd>

</dd>
<dt id="#44-Archiving-Yahoo!-Groups-Messages-with-WWW::Yahoo::Groups"><a id="Archiving-Yahoo--Groups-Messages-with-WWW::Yahoo::Groups"></a>#44 Archiving Yahoo! Groups Messages with WWW::Yahoo::Groups</dt>
<dd>

</dd>
<dt id="#64-Super-Author-Searching"><a id="Super-Author-Searching"></a>#64 Super Author Searching</dt>
<dd>

</dd>
<dt id="#73-Scraping-TV-Listings"><a id="Scraping-TV-Listings"></a>#73 Scraping TV Listings</dt>
<dd>

</dd>
</dl>

<p>The book was also positively reviewed on Slashdot: <a href="http://books.slashdot.org/article.pl?sid=03/12/11/2126256">http://books.slashdot.org/article.pl?sid=03/12/11/2126256</a></p>

<h1 id="ONLINE-RESOURCES-AND-SUPPORT"><a id="ONLINE"></a>ONLINE RESOURCES AND SUPPORT</h1>

<ul>

<li><p>WWW::Mechanize mailing list</p>

<p>The Mech mailing list is at <a href="http://groups.google.com/group/www-mechanize-users">http://groups.google.com/group/www-mechanize-users</a> and is specific to Mechanize, unlike the LWP mailing list below. Although it is a users list, all development discussion takes place here, too.</p>

</li>
<li><p>LWP mailing list</p>

<p>The LWP mailing list is at <a href="http://lists.perl.org/showlist.cgi?name=libwww">http://lists.perl.org/showlist.cgi?name=libwww</a>, and is more user-oriented and well-populated than the WWW::Mechanize list.</p>

</li>
<li><p>Perlmonks</p>

<p><a href="http://perlmonks.org">http://perlmonks.org</a> is an excellent community of support, and many questions about Mech have already been answered there.</p>

</li>
<li><p><a href="https://metacpan.org/pod/distribution/WWW-Mechanize/lib/WWW/Mechanize/Examples.pod">WWW::Mechanize::Examples</a></p>

<p>A random array of examples submitted by users, included with the Mechanize distribution.</p>

</li>
</ul>

<h1 id="ARTICLES-ABOUT-WWW::MECHANIZE"><a id="ARTICLES"></a>ARTICLES ABOUT WWW::MECHANIZE</h1>

<ul>

<li><p><a href="http://www.ibm.com/developerworks/linux/library/wa-perlsecure/">http://www.ibm.com/developerworks/linux/library/wa-perlsecure/</a></p>

<p>IBM article &quot;Secure Web site access with Perl&quot;</p>

</li>
<li><p><a href="http://www.oreilly.com/catalog/googlehks2/chapter/hack84.pdf">http://www.oreilly.com/catalog/googlehks2/chapter/hack84.pdf</a></p>

<p>Leland Johnson&#39;s hack #84 in <i>Google Hacks, 2nd Edition</i> is an example of a production script that uses WWW::Mechanize and HTML::TableContentParser. It takes in keywords and returns the estimated price of these keywords on Google&#39;s AdWords program.</p>

</li>
<li><p><a href="http://www.perl.com/pub/a/2004/06/04/recorder.html">http://www.perl.com/pub/a/2004/06/04/recorder.html</a></p>

<p>Linda Julien writes about using HTTP::Recorder to create WWW::Mechanize scripts.</p>

</li>
<li><p><a href="http://www.developer.com/lang/other/article.php/3454041">http://www.developer.com/lang/other/article.php/3454041</a></p>

<p>Jason Gilmore&#39;s article on using WWW::Mechanize for scraping sales information from Amazon and eBay.</p>

</li>
<li><p><a href="http://www.perl.com/pub/a/2003/01/22/mechanize.html">http://www.perl.com/pub/a/2003/01/22/mechanize.html</a></p>

<p>Chris Ball&#39;s article about using WWW::Mechanize for scraping TV listings.</p>

</li>
<li><p><a href="http://www.stonehenge.com/merlyn/LinuxMag/col47.html">http://www.stonehenge.com/merlyn/LinuxMag/col47.html</a></p>

<p>Randal Schwartz&#39;s article on scraping Yahoo News for images. It&#39;s already out of date: He manually walks the list of links hunting for matches, which wouldn&#39;t have been necessary if the <code><a href="./WWW::Mechanize.html#$mech-%3Efind_link(-...-)">find_link()</a></code> method existed at press time.</p>

</li>
<li><p><a href="http://www.perladvent.org/2002/16th/">http://www.perladvent.org/2002/16th/</a></p>

<p>WWW::Mechanize on the Perl Advent Calendar, by Mark Fowler.</p>

</li>
<li><p><a href="http://www.linux-magazin.de/ausgaben/2004/03/datenruessel/">http://www.linux-magazin.de/ausgaben/2004/03/datenruessel/</a></p>

<p>Michael Schilli&#39;s article on Mech and <a href="https://metacpan.org/pod/WWW::Mechanize::Shell">WWW::Mechanize::Shell</a> for the German magazine <i>Linux Magazin</i>.</p>

</li>
</ul>

<h2 id="Other-modules-that-use-Mechanize"><a id="Other"></a>Other modules that use Mechanize</h2>

<p>Here are modules that use or subclass Mechanize. Let me know of any others:</p>

<ul>

<li><p><a href="https://metacpan.org/pod/Finance::Bank::LloydsTSB">Finance::Bank::LloydsTSB</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/HTTP::Recorder">HTTP::Recorder</a></p>

<p>Acts as a proxy for web interaction, and then generates WWW::Mechanize scripts.</p>

</li>
<li><p><a href="https://metacpan.org/pod/Win32::IE::Mechanize">Win32::IE::Mechanize</a></p>

<p>Just like Mech, but using Microsoft Internet Explorer to do the work.</p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Bugzilla">WWW::Bugzilla</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Google::Groups">WWW::Google::Groups</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Hotmail">WWW::Hotmail</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Mechanize::Cached">WWW::Mechanize::Cached</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Mechanize::Cached::GZip">WWW::Mechanize::Cached::GZip</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Mechanize::FormFiller">WWW::Mechanize::FormFiller</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Mechanize::Shell">WWW::Mechanize::Shell</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Mechanize::Sleepy">WWW::Mechanize::Sleepy</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Mechanize::SpamCop">WWW::Mechanize::SpamCop</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Mechanize::Timed">WWW::Mechanize::Timed</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::SourceForge">WWW::SourceForge</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Yahoo::Groups">WWW::Yahoo::Groups</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/WWW::Scripter">WWW::Scripter</a></p>

</li>
</ul>

<h1 id="ACKNOWLEDGEMENTS">ACKNOWLEDGEMENTS</h1>

<p>Thanks to the numerous people who have helped out on WWW::Mechanize in one way or another, including Kirrily Robert for the original <code>WWW::Automate</code>, Lyle Hopkins, Damien Clark, Ansgar Burchardt, Gisle Aas, Jeremy Ary, Hilary Holz, Rafael Kitover, Norbert Buchmuller, Dave Page, David Sainty, H.Merijn Brand, Matt Lawrence, Michael Schwern, Adriano Ferreira, Miyagawa, Peteris Krumins, Rafael Kitover, David Steinbrunner, Kevin Falcone, Mike O&#39;Regan, Mark Stosberg, Uri Guttman, Peter Scott, Philippe Bruhat, Ian Langworth, John Beppu, Gavin Estey, Jim Brandt, Ask Bjoern Hansen, Greg Davies, Ed Silva, Mark-Jason Dominus, Autrijus Tang, Mark Fowler, Stuart Children, Max Maischein, Meng Wong, Prakash Kailasa, Abigail, Jan Pazdziora, Dominique Quatravaux, Scott Lanning, Rob Casey, Leland Johnson, Joshua Gatcomb, Julien Beasley, Abe Timmerman, Peter Stevens, Pete Krawczyk, Tad McClellan, and the late great Iain Truskett.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Andy Lester &lt;andy at petdance.com&gt;</p>

<h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1>

<p>This software is copyright (c) 2004 by Andy Lester.</p>

<p>This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install WWW::Mechanize, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm WWW::Mechanize</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install WWW::Mechanize</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./WWW::Mechanize.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
